Skip to content

Commit

Permalink
Only log warnings and above
Browse files Browse the repository at this point in the history
  • Loading branch information
Automaticism committed Nov 24, 2023
1 parent c24d3ef commit 5dcc03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple_logger.py
Expand Up @@ -11,7 +11,7 @@ def create_logger(name, log_dir='log', max_size_mb=100, console_output=False):
logger = logging.getLogger(name)

# Set the level of the logger (DEBUG, INFO, WARNING, ERROR, CRITICAL)
logger.setLevel(logging.DEBUG)
logger.setLevel(logging.WARNING)

# Create a handler for rotating file
file_path = os.path.join(log_dir, f'{name}.log')
Expand Down

0 comments on commit 5dcc03c

Please sign in to comment.