TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
nvinfer1::ILogger Class Referenceabstract

Application-implemented logging interface for the builder, engine and runtime. More...

Inheritance diagram for nvinfer1::ILogger:

Public Types

enum  Severity : int32_t {
  Severity::kINTERNAL_ERROR = 0,
  Severity::kERROR = 1,
  Severity::kWARNING = 2,
  Severity::kINFO = 3,
  Severity::kVERBOSE = 4
}
 

Public Member Functions

virtual void log (Severity severity, const char *msg)=0
 A callback implemented by the application to handle logging messages;. More...
 
virtual ~ILogger ()
 

Detailed Description

Application-implemented logging interface for the builder, engine and runtime.

Note that although a logger is passed on creation to each instance of a IBuilder or safe::IRuntime interface, the logger is internally considered a singleton, and thus multiple instances of safe::IRuntime and/or IBuilder must all use the same logger.

Member Enumeration Documentation

◆ Severity

enum nvinfer1::ILogger::Severity : int32_t
strong

The severity corresponding to a log message.

Enumerator
kINTERNAL_ERROR 

Internal error has occurred. Execution is unrecoverable.

kERROR 

Application error has occurred.

kWARNING 

Application error has been discovered. TensorRT has recovered or fallen back to a default.

kINFO 

Informational messages with instructional information.

kVERBOSE 

Verbose messages with debugging information.

Constructor & Destructor Documentation

◆ ~ILogger()

virtual nvinfer1::ILogger::~ILogger ( )
inlinevirtual

Member Function Documentation

◆ log()

virtual void nvinfer1::ILogger::log ( Severity  severity,
const char *  msg 
)
pure virtual

A callback implemented by the application to handle logging messages;.

Parameters
severityThe severity of the message.
msgThe log message, null terminated.

Implemented in sample::Logger.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: