Add the logging support to a file.