logging
setup_logger(name, level=logging.INFO, terminal=False)
¶
Set up a logger of module name
at a desired level.
Args:
name: module name
level: desired logging level
Returns:
logger
Source code in langroid/utils/logging.py
setup_loggers_for_package(package_name, level)
¶
Set up loggers for all modules in a package. This ensures that log-levels of modules outside the package are not affected. Args: package_name: main package name level: desired logging level Returns: