from cerebrum.utils import Factory logger = Factory.create_logger('mylogger', logfile='/var/log/myscript.log', loglevel='DEBUG') logger.debug('Starting script...')
from cerebrum.utils import Factory config = Factory.create_config('/etc/myscript.conf') server = config.get('server') port = config.get('port')In both of these examples, the Cerebrum package and its Utils Factory module are being used to create objects that are specific to the needs of the application. The package library is Cerebrum.