Package bazaar :: Class Log
[show private | hide private]
[frames | no frames]

Type Log

object --+
         |
        Log


Utility class to deffer creation of loggers (of logging package).

Usage:
    log = Log('bazaar.core') # log is Log instance
    log.debug()              # log is logging.Logger instance

@ivar logger: Logger name.

Method Summary
  __init__(self, logger)
Create log utility class
  __getattr__(self, attr)
Replace log utility instance with real logger from logging package.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, logger)
(Constructor)

Create log utility class
Overrides:
__builtin__.object.__init__

__getattr__(self, attr)
(Qualification operator)

Replace log utility instance with real logger from logging package.

Generated by Epydoc 2.1 on Tue May 10 18:27:28 2005 http://epydoc.sf.net