A logger function with the current timestamp prepended