SIENTIAPDE-1081

Enhance documentation across multiple modules with detailed parameter descriptions and usage examples
This commit is contained in:
vitor-aignosi
2025-05-26 16:45:50 -03:00
parent bc3f26c280
commit 49fa60c66f
15 changed files with 358 additions and 123 deletions

View File

@@ -4,6 +4,14 @@ import sys
def get_logger(name: str):
"""
Builds the logger. Gets the log level from the environment variable LOG_LEVEL.
If the log level is not set, it defaults to INFO.
Creates a stream handler and sets the log level.
Sets the formatter for the stream handler.
Adds the stream handler to the logger.
Returns the logger.
"""
log_level = getenv('LOG_LEVEL', 'INFO').upper()
logger = logging.getLogger(name)