logger holder
Project description
logger holder
>>> import logging
>>> import os
>>> SELFDIR = os.path.dirname(os.path.abspath('.')) # or : SELFDIR = os.path.dirname(os.path.abspath(__file__))
>>> PROJECTDIR = os.path.dirname(SELFDIR)
>>>
>>> from loggerholder import LoggerHolder
>>> logargs = ('logs/app.log', 'h', '%(asctime)s %(process)d %(thread)d %(levelname)s: %(message)s', logging.DEBUG, PROJECTDIR)
>>> logger = LoggerHolder.holded(logargs)
>>> print(logger)
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loggerholder-1.0.2.tar.gz
(3.5 kB
view hashes)