adds a json data as line to logfile (with timestamp)