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

Uploaded Source

Built Distribution

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

tealogger-0.9.3-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tealogger-0.9.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for tealogger-0.9.3.tar.gz
Algorithm Hash digest
SHA256 e08eae96a85ecbf58a4d50a3754e950d564c92dd011314edf95daa7a2e9ff5bb
MD5 29c727b5302588873c67c2fc2f036e79
BLAKE2b-256 90a43da33a1cc20fc7acd1e2d0346a88e5d2fd4c65e0687b6b06476ff30b77eb

See more details on using hashes here.

File details

Details for the file tealogger-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: tealogger-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for tealogger-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5b1dae117e9f7d01101b51b6dce8e8ce47cc882aeedf7c6c92e8d0aae3b0aa47
MD5 16e5479a8447297cd3ba10750303a106
BLAKE2b-256 6ecc54dcf2dd9d28d82a22bea57e6b359a5e37aee24aec0f2945f74e0f34ed7b

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