format the log time