A simple logger that logs messages to a file.