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

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3log-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 d88d6d41aef9ef956996823bf854323b7648950d884384ceb3dd6030e8a08274
MD5 10698753846225761622a44b7a764de7
BLAKE2b-256 e080b0ec31705c7c8cf4ae64e724f4e18c96b372595d5f536be36b48db1f3203

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3log-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9d93cef2ae8f739275187e9aee63264fefcf536638d3942463e9c650e7f2694d
MD5 b4c35fb70279eb7dc2af8efe3475e76a
BLAKE2b-256 2c646084553ab8b9c7ddf4d7d46f034d8e0e58dfff7007c789cde26365319741

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