SetUserLoggingFunction property
\brief Set user logging function
By default the logger created by the CreateEnv* functions is used to create the session logger as well. This function allows a user to override this default session logger with a logger of their own choosing. This way the user doesn't have to create a separate environment with a custom logger. This addresses the problem when the user already created an env but now wants to use a different logger for a specific session (for debugging or other reasons).
\paramin options
\paramin user_logging_function A pointer to a logging function.
\paramin user_logging_param A pointer to arbitrary data passed as the ::OrtLoggingFunction param parameter to
user_logging_function. This parameter is optional.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.17.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtSessionOptions> options,
OrtLoggingFunction user_logging_function,
ffi.Pointer<ffi.Void> user_logging_param,
)
>
>
SetUserLoggingFunction;