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.5.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.5-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3log-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 6cfbdb46c4590b7d0b038c4449b48583b10f9e2586b2b5b4e00f314a9ed3a468
MD5 2255c63ef6bd43cd6ba86bab0bdeff5b
BLAKE2b-256 03ea998f93119c4a98a658ab8a92ff94a9a6612c5bb5787ff785f7e696fe2ca8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3log-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed505d6299f0a6946f09f4a4a4573886149fb6f5719542e05091a999d67734c
MD5 2c01adbfb77e8f0ecd0a0b3958187c0e
BLAKE2b-256 1bb2d502c710d0b7b155db2097a83acc25612b5f7990468d4b01dfcc8c92b12b

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