Skip to main content

Tea Logger

Project description

Tea Logger

Python Tea Logger

Table of Content

Overview

Tea Logger is a simple logging package for Python.

Quick Start

Install the tealogger package, available on Python Package Index (PyPI).

pip install tealogger

Import the tealogger package to use.

import tealogger

# Set the logging level (optional)
tealogger.setLevel(tealogger.DEBUG)

tealogger.warning("WARNING: Message")

Level

From high (CRITICAL) to low (DEBUG).

  • CRITICAL = 50
  • FATAL = CRITICAL (Do not use, use CRITICAL instead)
  • ERROR = 40
  • WARNING = 30
  • WARN = WARNING (Deprecated, use WARNING instead)
  • INFO = 20
  • DEBUG = 10
  • NOTSET = 0
  • EXCEPTION

Note

Child Logger

When creating a child logger, if there are no handler(s) added, it will inherit the handle(s) from the parent. But if the parent logger itself is set to a higher level, the higher level gets respected. Since the parent handler(s) attached to the parent logger only output if the parent logger allows it.

Reference

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

tealogger-0.9.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

tealogger-0.9.0-py2.py3-none-any.whl (9.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tealogger-0.9.0.tar.gz.

File metadata

  • Download URL: tealogger-0.9.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tealogger-0.9.0.tar.gz
Algorithm Hash digest
SHA256 711fc5e6d04f7df2a19542b5ed6688905afd7e7d21712eadf3b1e7e5824ac8b1
MD5 d52007e3ff3bd1ece489aa3678635a38
BLAKE2b-256 e09ea8a069d5ad0873cfb803e18ec9fd4edbbd5c4845ba74d8be46e2f9bb7cb2

See more details on using hashes here.

File details

Details for the file tealogger-0.9.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tealogger-0.9.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tealogger-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a1e78b08dc352a9894bbc06a767e887396feb2929aae3d85da361ddf0a4b90ab
MD5 50da877b5d12ec3d7bdec4d60abdfb4d
BLAKE2b-256 82e42136298ab2a5a49b0076e02febc6930cf375f8e201b7001aa612826d8401

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