modular_trader.logging.base#
Classes#
Base class for loggers. |
Module Contents#
- class modular_trader.logging.base.BaseLogger(logger: loguru._logger.Logger = logger)#
Base class for loggers.
- Attributes:
logger (loguru.Logger): The logger to use.
- Parameters:
logger (loguru._logger.Logger)
- critical(message: str, *args, **kwargs) None #
Logs a message at the critical level.
- Args:
message (str): The message to log. *args: Additional positional arguments. **kwargs: Additional keyword arguments.
- Parameters:
message (str)
- Return type:
None
- debug(message: str, *args, **kwargs) None #
Logs a message at the debug level.
- Args:
message (str): The message to log. *args: Additional positional arguments. **kwargs: Additional keyword arguments.
- Parameters:
message (str)
- Return type:
None
- error(message: str, *args, **kwargs) None #
Logs a message at the error level.
- Args:
message (str): The message to log. *args: Additional positional arguments. **kwargs: Additional keyword arguments.
- Parameters:
message (str)
- Return type:
None
- exception(message: str, *args, **kwargs) None #
Logs an exception at the error level.
- Args:
message (str): The message to log. *args: Additional positional arguments. **kwargs: Additional keyword arguments.
- Parameters:
message (str)
- Return type:
None
- info(message: str, *args, **kwargs) None #
Logs a message at the info level.
- Args:
message (str): The message to log. *args: Additional positional arguments. **kwargs: Additional keyword arguments.
- Parameters:
message (str)
- Return type:
None
- success(message: str, *args, **kwargs) None #
Logs a message at the success level.
- Args:
message (str): The message to log. *args: Additional positional arguments. **kwargs: Additional keyword arguments.
- Parameters:
message (str)
- Return type:
None
- trace(message: str, *args, **kwargs) None #
Logs a message at the trace level.
- Args:
message (str): The message to log. *args: Additional positional arguments. **kwargs: Additional keyword arguments.
- Parameters:
message (str)
- Return type:
None
- warning(message: str, *args, **kwargs) None #
Logs a message at the warning level.
- Args:
message (str): The message to log. *args: Additional positional arguments. **kwargs: Additional keyword arguments.
- Parameters:
message (str)
- Return type:
None
- logger#