Handler for writing post requests to a logfile