Initial support for logging to a file