python-brisa provides a logging module with a colored logging feature.
The logging module is configured by the default manager described on config under the default brisa section.
The two main parameters that can be adjusted are:
These parameters can be modified through the config module or using the brisa-conf tool. Try brisa-conf -h for usage.
This module provides a global (or root) logger, which can be used simply by:
from brisa.core import log
log.debug('My debug message.')
log.error('My error message.')
log.info('My info message.')
For retrieving loggers other than the global/root one, use the log.getLogger() function as follows:
from brisa.core import log
mylogger = log.getLogger('my_logger')