Skip to main content

k3log

Action-CI Documentation Status Package

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.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for k3log 0.1.9
File Size Uploaded
k3log-0.1.9.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for k3log 0.1.9
File Interpreter ABI Platform
k3log-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 18.4 kB

Release files / k3log-0.1.9.tar.gz

Download URL k3log-0.1.9.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e1be8c8b7deb61e1884d45709dca4783ed1b60ffcc227dece46f2f0e4260295b
BLAKE2b-256 checksum
How to use checksums
ed4768999036d83314b6b0f18df2700993eebaa29299dfe581723048eb7c8c1a
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.9-py3-none-any.whl

Download URL k3log-0.1.9-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7edcb3c10fa3cbba1ac80bdbb5d7775094c2990510d4527fa6174fa02d504eff
BLAKE2b-256 checksum
How to use checksums
05f5e0f37b62e4ab301298dc8a2ba2625f8ac9d891eb1cbf7df4e20d821dd659
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

0.1.12

2 release files

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

1 release file

0.1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page