Metadata-Version: 2.1
Name: tealogger
Version: 0.8.7
Summary: Tea Logger
Author: TeaFTI
Project-URL: Homepage, https://github.com/TeaFTI/Python-TeaLogger
Project-URL: Bug Tracker, https://github.com/TeaFTI/Python-TeaLogger/issues
Keywords: tealogger
Requires-Python: >=3.7.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest

# Tea Logger

Python Tea Logger

## Table of Content
* [Overview](#overview)
  * [Quick Start](#quick-start)
  * [Level](#level)
* [Note](#note)
* [Reference](#reference)

## Overview

Tea Logger is a simple logging package for Python.

### Quick Start

Install the `tealogger` package, available on
[Python Package Index (PyPI)](https://pypi.org/).

```bash
pip install tealogger
```

Import the `tealogger` package to use.

```python
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

* [logging - Logging facility for Python](https://docs.python.org/3/library/logging.html)
* [Logging HOWTO](https://docs.python.org/3/howto/logging.html)
* [Logging Cookbook](https://docs.python.org/3/howto/logging-cookbook.html)
