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.8.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

tealogger-0.8.8-py2.py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 2 Python 3

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