Log messages with a timestamp