You can call `_ksr_slog_func(...)` function directly, with the `ksr_logdata_t` structure filled as you want.
With this PR, I understood you actually want to replace the default `_ksr_slog_func(...)` with your own implementation from a module, so I added the option to be able to set the `_ksr_slog_func`.