Package common :: Module logging_helpers
[hide private]
[frames] | no frames]

Module logging_helpers

source code

Classes [hide private]
  colors
  FancyFormatter
An eye-candy formatter with colors
Functions [hide private]
 
parseLogLevel(arg)
Eiter numeric value or level name from logging module
source code
 
parseLogTarget(arg)
[gajim.]c.x.y -> gajim.c.x.y .other_logger -> other_logger <None> -> gajim
source code
 
parseAndSetLogLevels(arg)
[=]LOGLEVEL -> gajim=LOGLEVEL...
source code
 
colorize(text, color) source code
 
init(use_color=False)
Iinitialize the logging system
source code
 
set_loglevels(loglevels_string) source code
 
set_verbose() source code
 
set_quiet() source code

Imports: logging, i18n


Function Details [hide private]

parseLogLevel(arg)

source code 
Eiter numeric value or level name from logging module

parseLogTarget(arg)

source code 
[gajim.]c.x.y -> gajim.c.x.y .other_logger -> other_logger <None> -> gajim

parseAndSetLogLevels(arg)

source code 

[=]LOGLEVEL     ->  gajim=LOGLEVEL
gajim=LOGLEVEL  ->  gajim=LOGLEVEL
.other=10       ->  other=10
.=10            ->  <nothing>
c.x.y=c.z=20    ->  gajim.c.x.y=20
                    gajim.c.z=20
gajim=10,c.x=20 ->  gajim=10
                    gajim.c.x=20

colorize(text, color)

source code 

init(use_color=False)

source code 
Iinitialize the logging system

set_loglevels(loglevels_string)

source code 

set_verbose()

source code 

set_quiet()

source code