import logg mod_logger logg module_logger class object inst_logger log

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import logg
mod_logger = logg.module_logger()
class A(object):
inst_logger = logg.instance_logger()
cls_logger = logg.class_logger()
def __init__(self):
self.inst_logger.info("init :-)")
@classmethod
def meth(cls):
cls.cls_logger.info("class-method")
def func(a=None):
logger = logg.function_logger()
logger.info("a=%r" % a)