![]() |
NVIDIA DRIVE OS Linux SDK API Reference5.1.6.0 Release |
Describes the interfaces of NvSIPLDeviceBlockTrace.
Defines the public interfaces to control the logging/tracing of the NvSIPL DeviceBlock (libnvsipl_devblk.so) for debug purposes.
Definition at line 34 of file NvSIPLDeviceBlockTrace.hpp.
Public Types | |
enum | TraceLevel { LevelNone = 0, LevelError, LevelWarning, LevelInfo, LevelDebug } |
Defines tracing/logging levels. More... | |
using | TraceFuncPtr = void(*)(const char *, int) |
Public Member Functions | |
virtual void | SetHook (TraceFuncPtr traceHook, bool bCallDefaultRenderer)=0 |
Sets a callable trace hook. More... | |
virtual void | SetLevel (TraceLevel eLevel)=0 |
Sets the log level. More... | |
virtual void | DisableLineInfo (void)=0 |
Disable line info (FUNCTION : LINE: ) prefix. More... | |
virtual | ~INvSIPLDeviceBlockTrace ()=default |
Default destructor. More... | |
Static Public Member Functions | |
static INvSIPLDeviceBlockTrace * | GetInstance (void) |
Gets a handle to INvSIPLDeviceBlockTrace instance. More... | |
using nvsipl::INvSIPLDeviceBlockTrace::TraceFuncPtr = void(*)(const char*, int) |
Definition at line 48 of file NvSIPLDeviceBlockTrace.hpp.
Defines tracing/logging levels.
Definition at line 39 of file NvSIPLDeviceBlockTrace.hpp.
|
virtualdefault |
Default destructor.
|
pure virtual |
Disable line info (FUNCTION : LINE: ) prefix.
Function to disable line information prefix. Each log/trace is prefixed with function name and the line number. Calling this function will disable the prefix.
|
static |
Gets a handle to INvSIPLDeviceBlockTrace instance.
Static function to get a handle to singleton INvSIPLDeviceBlockTrace implementation object.
|
pure virtual |
Sets a callable trace hook.
Function to set a callable hook to receive the messages from the library.
[in] | traceHook | std::function object, which could be a functor, function pointer, or a lambda. The function object must include const char* message and number of chars as arguments. |
[in] | bCallDefaultRenderer | Boolean flag indicating if the message should be printed to the default renderer (stderr). |
|
pure virtual |
Sets the log level.
Function to set the level of logging. Each trace statement specifies a trace level for that statement, and all traces with a level greater than or equal to the current application trace level will be rendered at runtime. Traces with a level below the application trace level will be ignored. The application trace level can be changed at any time to render additional or fewer trace statements.
[in] | eLevel | Trace level TraceLevel. |