RL4LMs
RL4LMs copied to clipboard
Changed from logging with the root logger
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