k3log is a collection of log utilities.
Project description
k3log
k3log is a collection of log utilities.
k3log is a component of pykit3 project: a python3 toolkit set.
Install
pip install k3log
Synopsis
# make a file logger in one line
logger = pk3logutil.make_logger('/tmp', level='INFO', fmt='%(message)s',
datefmt="%H:%M:%S")
logger.info('foo')
logger.stack_str(fmt="{fn}:{ln} in {func}\n {statement}", sep="\n")
# runpy.py:174 in _run_module_as_main
# "__main__", fname, loader, pkg_name)
# runpy.py:72 in _run_code
# exec code in run_globals
# ...
# test_logutil.py:82 in test_deprecate
# pk3logutil.deprecate()
# 'foo', fmt='{fn}:{ln} in {func}\n {statement}', sep='\n')
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
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
k3log-0.1.3.tar.gz
(6.6 kB
view hashes)