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
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
File details
Details for the file k3log-0.1.8.tar.gz.
File metadata
- Download URL: k3log-0.1.8.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 |
760a6e46e25c12db8892cf28226f91218ab55f34f5f2e0952223b0750a7e43d8
|
|
| MD5 |
b50a41afe1f0225e79329c0f64ee75f9
|
|
| BLAKE2b-256 |
ee1b49b473652758def267756365d3e173eb9a3ba76ecc403fd66a0fcaed3331
|
File details
Details for the file k3log-0.1.8-py3-none-any.whl.
File metadata
- Download URL: k3log-0.1.8-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 |
30629d205074b63373242ceb5fddc431bfdb28ddae01a4b1eaadfaa961d06546
|
|
| MD5 |
5201c2823b99fd60303cafc2426e4054
|
|
| BLAKE2b-256 |
aa9c8256e8227016c9379c33f774cd3b62a75d39a4ddfbfffbf7be0e38eedac7
|