Skip to content

Commit

Permalink
Update logging_config.py (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saibo-creator authored Jun 4, 2024
1 parent 651dca0 commit 9c2aaf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion transformers_cfg/logging_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ def setup_logging():
"CRITICAL": logging.CRITICAL,
}
log_level = log_levels.get(log_level_name, logging.WARNING)
logging.basicConfig(level=log_level)
# Create a logger for the library
logger = logging.getLogger('transformers_cfg')
# the level will propagate to loggers with submodule scope
logger.setLevel(log_level)

0 comments on commit 9c2aaf3

Please sign in to comment.