k3log
k3log is a collection of log utilities.
k3log is a component of pykit3 project: a python3 toolkit set.
Install
pip install k3log
Synopsis
import k3log
# make a file logger in one line
logger = k3log.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
# k3log.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
Metadata
Release files for k3log 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| k3log-0.1.12.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k3log-0.1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / k3log-0.1.12.tar.gz
| Download URL | k3log-0.1.12.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9956886f4d0d0b206b806a1a641e70487182f788e77a307e8a4d5408efd682b4
|
|
BLAKE2b-256 checksum How to use checksums |
7a488c19e8400ce84ac2c6e6d62da83e5f33510ecc308f432c6695b817fa907a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / k3log-0.1.12-py3-none-any.whl
| Download URL | k3log-0.1.12-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2f3e0b646816ed67b60175a55417cfdeafa88515da618e273c31e37810bab81
|
|
BLAKE2b-256 checksum How to use checksums |
6170c5a3dc0db6b18e3603a4ac5fbe262a870a15f574db3a1660ec02d2ed16a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|