libretro.drivers.log.driver¶
Protocol definition for the log driver interface.
See also
libretro.api.logProvides the C callback structure that
LogDriverimplementations use.
Classes
Protocol for drivers that receive log output from the core. |
- class LogDriver[source]¶
Bases:
ProtocolProtocol for drivers that receive log output from the core.
Cores request logging via
RETRO_ENVIRONMENT_GET_LOG_INTERFACE.See also
retro_log_callbackThe C callback struct whose
logfunction pointer this protocol implements.
- abstractmethod log(level, fmt)[source]¶
Emit a log message from the core.
Corresponds to
retro_log_printf_t.Warning
retro_log_printf_tnormally hasprintf-style variadic arguments, butctypesdoesn’t currently support variadic callbacks.As a workaround, your
Corecan format log messages withsprintfor similar, then pass it as the format string.- Parameters:
See also
retro_log_callback.logThe function pointer field in the callback struct that this method implements.
- Return type:
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶