imod.logging.ilogger.ILogger#
- class imod.logging.ilogger.ILogger[source]#
Bases:
object
Interface to be implemented by all logger wrappers.
- __init__()#
Methods
__init__
()critical
(message[, additional_depth])Log message with severity '
CRITICAL
'.debug
(message[, additional_depth])Log message with severity '
DEBUG
'.error
(message[, additional_depth])Log message with severity '
ERROR
'.info
(message[, additional_depth])Log message with severity '
INFO
'.log
(loglevel, message[, additional_depth])logs a message with the specified urgency level.
warning
(message[, additional_depth])Log message with severity '
WARNING
'.- abstract critical(message: str, additional_depth: int = 0) None [source]#
Log message with severity ‘
CRITICAL
’.- Parameters:
message (str) – message to be logged
additional_depth (Optional[int]) – additional depth level. Use this to correct the filename and line number when you add logging to a decorator
- abstract debug(message: str, additional_depth: int = 0) None [source]#
Log message with severity ‘
DEBUG
’.- Parameters:
message (str) – message to be logged
additional_depth (Optional[int]) – additional depth level. Use this to correct the filename and line number when you add logging to a decorator
- abstract error(message: str, additional_depth: int = 0) None [source]#
Log message with severity ‘
ERROR
’.- Parameters:
message (str) – message to be logged
additional_depth (Optional[int]) – additional depth level. Use this to correct the filename and line number when you add logging to a decorator
- abstract info(message: str, additional_depth: int = 0) None [source]#
Log message with severity ‘
INFO
’.- Parameters:
message (str) – message to be logged
additional_depth (Optional[int]) – additional depth level. Use this to correct the filename and line number when you add logging to a decorator
- log(loglevel: LogLevel, message: str, additional_depth: int = 0) None [source]#
logs a message with the specified urgency level.
- abstract warning(message: str, additional_depth: int = 0) None [source]#
Log message with severity ‘
WARNING
’.- Parameters:
message (str) – message to be logged
additional_depth (Optional[int]) – additional depth level. Use this to correct the filename and line number when you add logging to a decorator