Skip to main content

Light wrapper around Python's `logging` built-in module.

Project description

Kisesi

Kisesi is a light wrapper around the built-in logging module of Python standard library. This module is written in a hacky way and thus is meant for personal use.

Demos

import kisesi


def main() -> None:
    kisesi.basic_config(level=kisesi.DEBUG, incdate=True)

    log = kisesi.get_logger(__name__)
    log.debug("This is a \"debug\" message.")
    log.info("This is a \"info\" message.")
    log.warning("This is a \"warning\" message.")
    log.error("This is a \"error\" message.")
    log.critical("This is a \"critical\" message.")


if __name__ == "__main__":
    main()

Preview

Maple Font

Demo Image

Normal

[12/25/24 09:28:35 PM] [DEBUG] @ __main__.py:8 main :: This is a "debug" message.
[12/25/24 09:28:35 PM] [INFO] @ __main__.py:9 main :: This is a "info" message.
[12/25/24 09:28:35 PM] [WARN] @ __main__.py:10 main :: This is a "warning" message.
[12/25/24 09:28:35 PM] [ERROR] @ __main__.py:11 main :: This is a "error" message.
[12/25/24 09:28:35 PM] [CRITICAL] @ __main__.py:12 main :: This is a "critical" message.

(You'll get colored level names in normal fonts as well)

Guide

You are expected to read the source code to figure out all the features.

Installation

Pypi

user:~$ pip install kisesi

Git

user:~$ pip install git+https://github.com/eeriemyxi/kisesi

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

kisesi-0.1.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

kisesi-0.1.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kisesi-0.1.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for kisesi-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3595c3513325ea408515012ddc9f83708d74cafa325b422539af65474d89b195
MD5 9ea3c267827d0bce6822274edd49bb84
BLAKE2b-256 a38376efd25d736ac96759b45b444e855820d05699af16a5411df3d9851756f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for kisesi-0.1.6.tar.gz:

Publisher: publish-to-pypi.yml on eeriemyxi/kisesi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: kisesi-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for kisesi-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 58064966a9438363a1c7a881d3bb18a9160fa0bff3ef94757be84b7134dd29a9
MD5 0bd551a9a96ed1554275bf36ffd8e5bc
BLAKE2b-256 4f349d10774efc903a1c348c29427ede11609a1a65c62f8e4ee393c98161745c

See more details on using hashes here.

Provenance

The following attestation bundles were made for kisesi-0.1.6-py3-none-any.whl:

Publisher: publish-to-pypi.yml on eeriemyxi/kisesi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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