configurationengine/source/scripts/logging.ini
author Bob Rosenberg <bob.rosenberg@nokia.com>
Tue, 26 Oct 2010 10:43:50 +0100
changeset 8 a2e65c705db8
parent 3 e7e0ae78773e
permissions -rw-r--r--
Fix for bug when joining where ID prefixes would be added even if they use the default ID namespace

[DEFAULT]

[loggers]
keys=root,cone

[handlers]
keys=fileHandler,consoleHandler

[formatters]
keys=fileFormatter,consoleFormatter 

[logger_root]
# Explicitly define level, since otherwise the default level would be used
level=NOTSET
handlers=fileHandler,consoleHandler

[logger_cone]
level=NOTSET
qualname=cone
handlers=

[handler_consoleHandler]
class=StreamHandler
formatter=consoleFormatter
args=(sys.stdout,)
# level is not defined here , since it is expected to come from the defaults,
# which in turn comes from the command line

[handler_fileHandler]
class=FileHandler
level=DEBUG
formatter=fileFormatter
args=('%(logfile)s','w')

[formatter_consoleFormatter]
format=%(levelname)s: %(name)s %(message)s
datefmt=%m-%d %H:%M

[formatter_fileFormatter]
format=%(asctime)s %(levelname)-8s: %(name)s %(message)s