aboutsummaryrefslogtreecommitdiff
blob: 9ff69f7e6ac851b836c34a2ebdd691b742e22513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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.access().load_config ( 'R-overlay.conf' )
config.access().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.INFO )
ch.setFormatter (
	logging.Formatter  ( '%(levelname)-8s %(name)-14s -- %(message)s' )
)
logging.getLogger().addHandler ( ch )
del ch

VERSION = "0.0-pre1"