diff --git a/duplicate_files_in_folders/logging_config.py b/duplicate_files_in_folders/logging_config.py index dbb51dc..ba06ab8 100644 --- a/duplicate_files_in_folders/logging_config.py +++ b/duplicate_files_in_folders/logging_config.py @@ -4,6 +4,11 @@ def setup_logging(): + """ + Setup logging for the script. Logs are saved in the logs folder. The log file is named log_.txt + Only errors (and above) are logged to the console. + :return: None + """ is_test = 'PYTEST_CURRENT_TEST' in os.environ formatter = logging.Formatter('[%(levelname)s]\t%(asctime)s:\t%(message)s') logger = logging.getLogger()