completed the logging sample for the post