From 746aaa6c2af74a7b1d07b306a838f53d2433d83e Mon Sep 17 00:00:00 2001 From: Kim Oliver Drechsel Date: Sat, 13 Aug 2022 12:37:57 +0200 Subject: [PATCH] Update Readme.md --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 98fe10d..5dac65c 100644 --- a/README.md +++ b/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) -Simple logger class with colored LogLevel designed to run inside Docker container - -> Use the environment variable `LOG_LEVEL` to set the log level. -> -> **LOG_LEVEL** = *debug* +Simple logger function with colored LogLevel designed to run inside Docker container ## Possible values Values can be set case insensitive (DEBUG, debug, Debug). - debug -- info +- info (default value) - warn - warning - crit @@ -21,6 +17,11 @@ Values can be set case insensitive (DEBUG, debug, Debug). - Python 3.10 or higher ## Usage example + +> Use the environment variable `LOG_LEVEL` to set the log level. +> +> **LOG_LEVEL** = *debug* + ```python # Setting LOG_LEVEL with `os.environ` is only necessary if environment variable has not been set before (e.g. outside Docker) import os