libretro.drivers.log.unformatted¶
A log driver that forwards core messages to Python’s logging module.
See also
libretro.api.logDefines the log callback structure this driver implements.
Classes
- class UnformattedLogDriver[source]¶
Bases:
LogDriverA
LogDriverthat forwards core log messages to a PythonLogger.All received messages are also stored in
recordsfor later inspection.- property records¶
All log records received from the core, in the order they were emitted.
- classmethod __new__(*args, **kwargs)¶
- 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: