Logger¶
Bases: ABC
Abstract base class for logging in the system.
The ILogger
interface defines the structure for logging messages within the
system. It provides methods for logging messages at different severity levels,
including debug, info, warning, error, and critical.
Source code in gamms/typing/logger.py
critical(msg)
abstractmethod
¶
Log a critical message.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg
|
str
|
The critical message to log. |
required |
debug(msg)
abstractmethod
¶
error(msg)
abstractmethod
¶
info(msg)
abstractmethod
¶
Log an informational message.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg
|
str
|
The informational message to log. |
required |
setLevel(level)
abstractmethod
¶
Set the logging level.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
level
|
str
|
The logging level to set (e.g., 'DEBUG', 'INFO', 'WARNING', 'ERROR'). |
required |
warning(msg)
abstractmethod
¶
Log a warning message.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg
|
str
|
The warning message to log. |
required |