TRT Interop#

class TrtLogger : public nvinfer1::ILogger#

The nvinfer1::ILogger handed to TensorRT; forwards to gLogger. Immortal for the same reason as EdgeLLMLogger: TensorRT’s process-lifetime plugin registry keeps a pointer to it.

Public Functions

inline void log(
nvinfer1::ILogger::Severity severity,
char const *msg
) noexcept override#
inline virtual logger::Severity getLevel() const noexcept#

Virtual so that a plugin library, which has its own gLogger, reads the level of the module that created this logger.

Public Static Functions

static TrtLogger &instance() noexcept#