allenai / RL4LMs

A modular RL library to fine-tune language models to human preferences
https://rl4lms.apps.allenai.org/
Apache License 2.0
2.13k stars 191 forks source link

Changed from logging with the root logger #24

Open JulesGM opened 1 year ago

JulesGM commented 1 year ago

Logging with the root logger, like logging.info, removes the possibility of controlling the log level of submodules separately. logging.getLogger(__name__) enables this (& is the recommended practice), by doing something like logging.getLogger("path.to.the.module").setLevel(logging.INFO) or imported.module.LOGGER.setLevel(logging.INFO) after the basicConfig call