gbp :: log :: Logger :: Class Logger
[hide private]
[frames] | no frames]

Class Logger

object --+
         |
        Logger

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
set_level(self, level)
 
_is_tty(self)
 
set_color(self, color)
 
_color_dummy(self, level=None)
 
_color(self, level)
 
_color_off(self)
 
log(self, level, message)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  COLOR_NONE = 0
  COLOR_SEQ = '\x1b[%dm'
  BOLD_SEQ = '\x1b[1m'
  format = '%(color)sgbp:%(levelname)s: %(message)s%(coloroff)s'
  COLOR_BLACK = 30
  COLOR_GREEN = 32
  COLOR_MAGENTA = 35
  COLOR_RED = 31
  COLOR_YELLOW = 33
  DEBUG = 0
  ERROR = 3
  INFO = 1
  WARNING = 2
  _ = 34
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)