Currently, all log output goes to standard output. Enhance the logging functionality so that the output could be written to a file as well.