savant_rs.logging
- class savant_rs.logging.LogLevel
Allows defining a log level for a logging subsystem
- Returns:
The log level. By default, the log level is set to Info.
- Return type:
- Debug = Debug
- Error = Error
- Info = Info
- Off = Off
- Trace = Trace
- Warning = Warning
- savant_rs.logging.get_log_level()
Get the current log level for the logger.
- Returns:
The current log level.
- Return type:
- savant_rs.logging.log(level, target, message, params=None, no_gil=True)
Logs a message.
GIL Management: This function releases the GIL optionally.
- Parameters:
level (
LogLevel
) – The log level to use.target (str) – The code initiated the log message. The target is defined as
a::b::c
message (str) – The log message.
params (dict) – The log message parameters.
no_gil (bool) – If True, the GIL is released when the function is executed.