Skip to main content

k3log is a collection of log utilities.

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.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

k3log-0.1.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3log-0.1.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for k3log-0.1.4.tar.gz
Algorithm Hash digest
SHA256 87aed6907bf7bc524c8aab9ef9c60ea847832394d5fb3a9254135470cc78baf5
MD5 2f67d24dec060037006081403aec38da
BLAKE2b-256 24527972c8d795c11773095df908b9390a13b84b6023860057b38dd834204e57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3log-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for k3log-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 41b34bcf672426ad4ed37550ca432cb906fe3318611e7cdea27885b92523c417
MD5 2b057790b53208f504ddfe40b4d5f9bf
BLAKE2b-256 853da3d4ee56929e589f39dcb2dd896936a679fbbf1fabcca08c1d25e9e0f01b

See more details on using hashes here.

Supported by

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