Adding a timestamp to log messages