From 9a9269a0cb65dbcacebbb4a5f7ebb136edd9c44b Mon Sep 17 00:00:00 2001 From: "HOME-2022\\User" Date: Mon, 3 Jun 2024 17:20:34 +0300 Subject: [PATCH] added documentation, types --- duplicate_files_in_folders/logging_config.py | 5 +++++ 1 file changed, 5 insertions(+) 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()