Skip to main content

Lightweight logging utility for python. Wrapper around stdlib

Project description

kLogs

Small logging utility for uniform format, color

Docs are WIP

You can use like so:

    log = klogs.kLogger(level, outfile)
    log.debug("debug statement")
    log.info("info statement")
    log.warning("warning statement")
    log.error("error statement")
    log.critical("critical statement")

Output:

klogs - DEBUG - debug message (klogs.py:7)
klogs - INFO - info message (klogs.py:8)
klogs - WARNING - warning message (klogs.py:9)
klogs - ERROR - error message (klogs.py:10)
klogs - CRITICAL - critical message (klogs.py:11)
Stack (most recent call last):
  File "/Users/kevin/coding/kLogs/src/klogs.py", line 26, in <module>
    test(args.file, args.level)
  File "/Users/kevin/coding/kLogs/src/klogs.py", line 11, in test
    log.critical("critical message")

Or

    log()
    x = 10
    log(x)

Which will produce:

   klogs - INFO -  (klogs.py:12)
   klogs - INFO - x | 10 (klogs.py:14)

Features:

  • Easy to use log format language
  • Search
  • Open source at line
  • log and assert

Installation

WIP

Usage

WIP

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

klogs_util-0.1.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

klogs_util-0.1.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file klogs_util-0.1.1.tar.gz.

File metadata

  • Download URL: klogs_util-0.1.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for klogs_util-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d2714d0ae1a6cffee26a82e85394b5a851a738df214d41c8b94ed31f2572438
MD5 014d801d0f90bd3c93e4bdb3fc63f5ff
BLAKE2b-256 d412ccc0b46487c39b9d23d3c5fee33d478db12e7b7a3bd3d3ad8cd21f59bdc3

See more details on using hashes here.

File details

Details for the file klogs_util-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: klogs_util-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for klogs_util-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fee9220a20e8602a764e0d6dd5e0b431f9a42c74dff6b8141c5f805c2ec7be5
MD5 99f7df51def40100c1db0894315c28e0
BLAKE2b-256 3d4e4809ab31032bfca3755861110bd7caf22b38b6e251dee4a55a466956298a

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