TensorRT 8.6.1
|
Application-implemented logging interface for the builder, refitter and runtime. More...
#include <NvInferRuntimeBase.h>
Public Types | |
enum class | Severity : int32_t { kINTERNAL_ERROR = 0 , kERROR = 1 , kWARNING = 2 , kINFO = 3 , kVERBOSE = 4 } |
Public Member Functions | |
virtual void | log (Severity severity, AsciiChar const *msg) noexcept=0 |
ILogger ()=default | |
virtual | ~ILogger ()=default |
Application-implemented logging interface for the builder, refitter and runtime.
The logger used to create an instance of IBuilder, IRuntime or IRefitter is used for all objects created through that interface. The logger should be valid until all objects created are released.
The Logger object implementation must be thread safe. All locking and synchronization is pushed to the interface implementation and TensorRT does not hold any synchronization primitives when calling the interface functions.
|
strong |
The severity corresponding to a log message.
|
default |
|
virtualdefault |
|
pure virtualnoexcept |
A callback implemented by the application to handle logging messages;
severity | The severity of the message. |
msg | A null-terminated log message. |
Usage considerations