2017-08-07 19:58:51 +01:00
|
|
|
import logzero
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2017-08-07 19:58:51 +01:00
|
|
|
# configure custom format with function name
|
|
|
|
_format_template = "%(color)s[%(levelname)1.1s %(asctime)s %(module)s:%(funcName)s:" \
|
|
|
|
"%(lineno)d]%(end_color)s %(message)s"
|
|
|
|
_formatter = logzero.LogFormatter(fmt=_format_template)
|
|
|
|
logzero.formatter(_formatter)
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2017-08-07 19:58:51 +01:00
|
|
|
logger = logzero.logger
|