SIENTIAPDE-1081
Enhance documentation across multiple modules with detailed parameter descriptions and usage examples
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user