Skip to main content

A collection of log utilities for Python logging

Project description

k3log

Build Status Python package Documentation Status Package

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

k3log-0.1.6.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

k3log-0.1.6-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file k3log-0.1.6.tar.gz.

File metadata

  • Download URL: k3log-0.1.6.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

Hashes for k3log-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a8ddf9120d7f3d5718b9467019e57915f9d838a0acff53f9f34877c98ae950ca
MD5 a5995c084c3bf4bb43da10fb1c471f33
BLAKE2b-256 74484f38a9cdcf2a55e9290ee38c79e7e2f71ac7f61667106cc9b34ed3e31f46

See more details on using hashes here.

File details

Details for the file k3log-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: k3log-0.1.6-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

Hashes for k3log-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 39034db61e9a4a858d808b2509d572805b628a3b57dafeb426c129105169ab01
MD5 8a82b1ac25e32fa3b85dc379a2037032
BLAKE2b-256 e3855071d35a981c4acaf722f2726f8b9cbe7aab00f5150a07efb43310f691c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page