Log body into the agent handle

Hi I am trying to work out how to put the log info(reed switch open close date and time) into the agent so it will show up on the handle/website. I have put body(words on the handle) but I can’t work out how to put the log on there. Any help would be great. Thanks
Josh