A collection of log utilities for Python logging
Project description
k3log
k3log is a collection of log utilities.
k3log is a component of pykit3 project: a python3 toolkit set.
k3log is a collection of log utilities for logging.
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
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.6.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
k3log-0.1.6-py3-none-any.whl
(8.4 kB
view details)
File details
Details for the file k3log-0.1.6.tar.gz.
File metadata
- Download URL: k3log-0.1.6.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ddf9120d7f3d5718b9467019e57915f9d838a0acff53f9f34877c98ae950ca
|
|
| MD5 |
a5995c084c3bf4bb43da10fb1c471f33
|
|
| BLAKE2b-256 |
74484f38a9cdcf2a55e9290ee38c79e7e2f71ac7f61667106cc9b34ed3e31f46
|
File details
Details for the file k3log-0.1.6-py3-none-any.whl.
File metadata
- Download URL: k3log-0.1.6-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39034db61e9a4a858d808b2509d572805b628a3b57dafeb426c129105169ab01
|
|
| MD5 |
8a82b1ac25e32fa3b85dc379a2037032
|
|
| BLAKE2b-256 |
e3855071d35a981c4acaf722f2726f8b9cbe7aab00f5150a07efb43310f691c7
|