def getlogger(pkg='<STR_LIT>', handler=None):
from .caller import caller<EOL>if not pkg:<EOL><INDENT>m = caller.modulename()<EOL>s = m.split('<STR_LIT:.>', <NUM_LIT:1>)<EOL>if len(s) > <NUM_LIT:1>:<EOL><INDENT>pkg = s[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>if haslogger(pkg):<EOL><INDENT>return logging.getLogger(pkg)<EOL><DEDENT>else:<EOL><INDENT>logger = logging.getLogger(pkg)<EOL>logger.addHandler(handler or default_handler)<EOL>logger.setLevel(logging.DEBUG)<EOL>return logger<EOL><DEDENT>
패키지 혹은 채널 로거
logging.getLogger(package_name) or logg.getLogger()
:param pkg: str