use standard format for plugin_system logger output

This commit is contained in:
Denis Fomin 2011-01-04 00:30:42 +03:00
parent f13989927b
commit 5bc571053c
1 changed files with 2 additions and 11 deletions

View File

@ -27,6 +27,8 @@ Helper code related to plug-ins management system.
__all__ = ['log', 'log_calls', 'Singleton']
import logging
import functools
log = logging.getLogger('gajim.plugin_system')
'''
Logger for code related to plug-in system.
@ -34,17 +36,6 @@ Logger for code related to plug-in system.
:type: logging.Logger
'''
consoleloghandler = logging.StreamHandler()
#consoleloghandler.setLevel(1)
consoleloghandler.setFormatter(
logging.Formatter('%(levelname)s: %(message)s'))
#logging.Formatter('%(asctime)s %(name)s: %(levelname)s: %(message)s'))
#log.setLevel(logging.DEBUG)
log.addHandler(consoleloghandler)
log.propagate = False
import functools
class GajimPluginActivateException(Exception):
'''
Raised when activation failed