Skip to content

Commit

Permalink
added documentation, types
Browse files Browse the repository at this point in the history
  • Loading branch information
niradar committed Jun 3, 2024
1 parent d05863d commit 9a9269a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions duplicate_files_in_folders/logging_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_<current_date_time>.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()
Expand Down

0 comments on commit 9a9269a

Please sign in to comment.