This commit is contained in:
parent
16820fa083
commit
746aaa6c2a
13
README.md
13
README.md
@ -2,16 +2,12 @@
|
|||||||
|
|
||||||
[![Build Status](https://drone.pyas.de/api/badges/Kim/logger.py/status.svg)](https://drone.pyas.de/Kim/logger.py)
|
[![Build Status](https://drone.pyas.de/api/badges/Kim/logger.py/status.svg)](https://drone.pyas.de/Kim/logger.py)
|
||||||
|
|
||||||
Simple logger class with colored LogLevel designed to run inside Docker container
|
Simple logger function with colored LogLevel designed to run inside Docker container
|
||||||
|
|
||||||
> Use the environment variable `LOG_LEVEL` to set the log level.
|
|
||||||
>
|
|
||||||
> **LOG_LEVEL** = *debug*
|
|
||||||
|
|
||||||
## Possible values
|
## Possible values
|
||||||
Values can be set case insensitive (DEBUG, debug, Debug).
|
Values can be set case insensitive (DEBUG, debug, Debug).
|
||||||
- debug
|
- debug
|
||||||
- info
|
- info (default value)
|
||||||
- warn
|
- warn
|
||||||
- warning
|
- warning
|
||||||
- crit
|
- crit
|
||||||
@ -21,6 +17,11 @@ Values can be set case insensitive (DEBUG, debug, Debug).
|
|||||||
- Python 3.10 or higher
|
- Python 3.10 or higher
|
||||||
|
|
||||||
## Usage example
|
## Usage example
|
||||||
|
|
||||||
|
> Use the environment variable `LOG_LEVEL` to set the log level.
|
||||||
|
>
|
||||||
|
> **LOG_LEVEL** = *debug*
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# Setting LOG_LEVEL with `os.environ` is only necessary if environment variable has not been set before (e.g. outside Docker)
|
# Setting LOG_LEVEL with `os.environ` is only necessary if environment variable has not been set before (e.g. outside Docker)
|
||||||
import os
|
import os
|
||||||
|
Loading…
x
Reference in New Issue
Block a user