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

Uploaded Source

Built Distribution

tealogger-0.8.9-py2.py3-none-any.whl (9.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for tealogger-0.8.9.tar.gz
Algorithm Hash digest
SHA256 c40026189f434d939aa605dd9d75fc7ea21a3116d72fa0bf5726a6f7a0617196
MD5 faf96768f758be49788f679f6bb532aa
BLAKE2b-256 32f5935c9c73f76acf77ebd4538571f79f5eae341cfc21e1b2b7f76d37dd65dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tealogger-0.8.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.1 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.8.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d995e9536de4da96db4a278816713497fba141c63e68fdd90fed59931338d42c
MD5 71b15d49428a27a94b86a5dc090e5a8f
BLAKE2b-256 8fa2417e0d0d801fc948f8bc9dc3bf871cb970d9623e125824c44d63364395be

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