adding padding and timestamps to log messages