# R Overlay # Copyright 2006-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import logging from roverlay import config config.loader().load_config ( 'R-overlay.conf' ) config.loader().load_field_definition ( 'description_fields.conf' ) logging.basicConfig ( level=logging.DEBUG, filename=config.get ( [ 'LOG', 'FILE', 'main' ], 'roverlay.log' ), filemode='a', format='%(asctime)s %(levelname)-8s %(name)-14s -- %(message)s', datefmt='%F %H:%M:%S' ) # add console output to the logger ch = logging.StreamHandler() ch.setLevel ( logging.DEBUG ) ch.setFormatter ( logging.Formatter ( '%(levelname)-8s %(name)-14s -- %(message)s' ) ) logging.getLogger().addHandler ( ch ) del ch VERSION = "0.0-pre1"