set a proper format for the console output

This commit is contained in:
Jesse Keating 2007-08-15 22:14:09 -04:00 committed by Jesse Keating
parent 1f85a11293
commit 55d398b5b4
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class PungiBase():
filename=logfile)
# Create the stdout/err streams and only send INFO+ stuff there
formatter = logging.Formatter('%(name)s:%(levelname)s: %(message)s')
console = logging.StreamHandler()
console.setFormatter(formatter)
console.setLevel(logging.INFO)
logging.getLogger('').addHandler(console)