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

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.12
File Size Uploaded
k3log-0.1.12.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for k3log 0.1.12
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 release files

0.1.9

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