use standard format for plugin_system logger output
This commit is contained in:
parent
f13989927b
commit
5bc571053c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue