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

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.11
File Size Uploaded
k3log-0.1.11.tar.gz 10.1 kB Details

Built distribution (wheel)

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

Total release size: 18.7 kB

Release files / k3log-0.1.11.tar.gz

Download URL k3log-0.1.11.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
225ed33129abd1adfb998c6c518363ceae790aac01d6fa186a699b6bdd3228df
BLAKE2b-256 checksum
How to use checksums
ce5b8352a64605d37445b14e48306c5ca54adbb0396956d7a5a9503713bf6b03
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.11-py3-none-any.whl

Download URL k3log-0.1.11-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d3baeedd5e6be908b726ca5dbeef8a03601d61c74a35d1b2f2d4114bac1d53f
BLAKE2b-256 checksum
How to use checksums
7a26f83d465a01d43212b6c6d2990b146a240fd8de33bf794ff27966cc39cd9c
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.11 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