Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
Assimp::NullLogger Class Reference

CPP-API: Empty logging implementation. More...

#include <NullLogger.hpp>

Inherits Assimp::Logger.

Public Member Functions

bool attachStream (LogStream *pStream, unsigned int severity)
 Detach a still attached stream from logger. More...
 
bool detachStream (LogStream *pStream, unsigned int severity)
 Detach a still attached stream from logger. More...
 
void OnDebug (const char *message)
 Logs a debug message. More...
 
void OnError (const char *message)
 Logs an error message. More...
 
void OnInfo (const char *message)
 Logs an info message. More...
 
void OnVerboseDebug (const char *message)
 Logs a verbose debug message. More...
 
void OnWarn (const char *message)
 Logs a warning message. More...
 
- Public Member Functions inherited from Assimp::Logger
virtual bool attachStream (LogStream *pStream, unsigned int severity=Debugging|Err|Warn|Info)=0
 Attach a new log-stream. More...
 
void debug (const char *message)
 Writes a debug message. More...
 
template<typename... T>
void debug (T &&... args)
 
virtual bool detachStream (LogStream *pStream, unsigned int severity=Debugging|Err|Warn|Info)=0
 Detach a still attached stream from the logger (or modify the filter flags bits) More...
 
void error (const char *message)
 Writes an error message. More...
 
template<typename... T>
void error (T &&... args)
 
LogSeverity getLogSeverity () const
 Get the current log severity. More...
 
void info (const char *message)
 Writes a info message. More...
 
template<typename... T>
void info (T &&... args)
 
void setLogSeverity (LogSeverity log_severity)
 Set a new log severity. More...
 
void verboseDebug (const char *message)
 Writes a debug message. More...
 
template<typename... T>
void verboseDebug (T &&... args)
 
void warn (const char *message)
 Writes a warning message. More...
 
template<typename... T>
void warn (T &&... args)
 
virtual ~Logger ()
 Virtual destructor. More...
 

Additional Inherited Members

- Public Types inherited from Assimp::Logger
enum  ErrorSeverity { Debugging = 1 , Info = 2 , Warn = 4 , Err = 8 }
 Description for severity of a log message. More...
 
enum  LogSeverity { NORMAL , DEBUGGING , VERBOSE }
 Log severity to describe the granularity of logging. More...
 
- Protected Member Functions inherited from Assimp::Logger
std::string formatMessage (Assimp::Formatter::format f)
 
template<typename... T, typename U >
std::string formatMessage (Assimp::Formatter::format f, U &&u, T &&... args)
 
 Logger () AI_NO_EXCEPT
 Default constructor. More...
 
 Logger (LogSeverity severity)
 Construction with a given log severity. More...
 
virtual void OnDebug (const char *message)=0
 Called as a request to write a specific debug message. More...
 
virtual void OnError (const char *message)=0
 Called as a request to write a specific error message. More...
 
virtual void OnInfo (const char *message)=0
 Called as a request to write a specific info message. More...
 
virtual void OnVerboseDebug (const char *message)=0
 Called as a request to write a specific verbose debug message. More...
 
virtual void OnWarn (const char *essage)=0
 Called as a request to write a specific warn message. More...
 
- Protected Attributes inherited from Assimp::Logger
LogSeverity m_Severity
 

Detailed Description

CPP-API: Empty logging implementation.

Does nothing! Used by default if the application hasn't requested a custom logger via #DefaultLogger::set() or #DefaultLogger::create();

Member Function Documentation

◆ attachStream()

bool Assimp::NullLogger::attachStream ( LogStream pStream,
unsigned int  severity 
)
inlinevirtual

Detach a still attached stream from logger.

Implements Assimp::Logger.

◆ detachStream()

bool Assimp::NullLogger::detachStream ( LogStream pStream,
unsigned int  severity 
)
inlinevirtual

Detach a still attached stream from logger.

Implements Assimp::Logger.

◆ OnDebug()

void Assimp::NullLogger::OnDebug ( const char *  message)
inlinevirtual

Logs a debug message.

Implements Assimp::Logger.

◆ OnError()

void Assimp::NullLogger::OnError ( const char *  message)
inlinevirtual

Logs an error message.

Implements Assimp::Logger.

◆ OnInfo()

void Assimp::NullLogger::OnInfo ( const char *  message)
inlinevirtual

Logs an info message.

Implements Assimp::Logger.

◆ OnVerboseDebug()

void Assimp::NullLogger::OnVerboseDebug ( const char *  message)
inlinevirtual

Logs a verbose debug message.

Implements Assimp::Logger.

◆ OnWarn()

void Assimp::NullLogger::OnWarn ( const char *  message)
inlinevirtual

Logs a warning message.

Implements Assimp::Logger.


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