Add timestamp and newline to log messages