Set a directory path for saving a log file.
folder – Folder path to save the log file.
level – Level of verbosity to set to the logger.