improved formatting for log messages