Go to the documentation of this file.
45 #ifndef INCLUDED_AI_DEFAULTLOGGER
46 #define INCLUDED_AI_DEFAULTLOGGER
59 #define ASSIMP_DEFAULT_LOG_NAME "AssimpLog.txt"
125 unsigned int severity);
130 unsigned int severity);
143 void OnDebug(
const char *message);
146 void OnVerboseDebug(
const char *message);
149 void OnInfo(
const char *message);
152 void OnWarn(
const char *message);
155 void OnError(
const char *message);
159 void WriteToStreams(
const char *message,
ErrorSeverity ErrorSev);
166 unsigned int GetThreadID();
170 typedef std::vector<LogStreamInfo *> StreamArray;
171 typedef std::vector<LogStreamInfo *>::iterator StreamIt;
172 typedef std::vector<LogStreamInfo *>::const_iterator ConstStreamIt;
179 StreamArray m_StreamArray;
182 char lastMsg[MAX_LOG_MESSAGE_LENGTH * 2];
189 #endif // !! INCLUDED_AI_DEFAULTLOGGER
CPP-API: Empty logging implementation.
Definition: NullLogger.hpp:60
#define ASSIMP_DEFAULT_LOG_NAME
Definition: DefaultLogger.hpp:59
LogSeverity
Log severity to describe the granularity of logging.
Definition: Logger.hpp:75
@ aiDefaultLogStream_DEBUGGER
Definition: types.h:462
bool detachStream(LogStream *pStream, unsigned int severity)
Detach a still attached stream from the logger (or modify the filter flags bits)
@ aiDefaultLogStream_FILE
Definition: types.h:451
ErrorSeverity
Description for severity of a log message.
Definition: Logger.hpp:89
Abstract base class 'LogStream', representing an output log stream.
CPP-API: Abstract interface for logger implementations. Assimp provides a default implementation and ...
Definition: Logger.hpp:68
static void kill()
Kills the current singleton logger and replaces it with a #NullLogger instance.
CPP-API: Abstract interface for log stream implementations.
Definition: LogStream.hpp:65
bool attachStream(LogStream *pStream, unsigned int severity)
Attach a new log-stream.
Abstract base class 'Logger', base of the logging system.
static bool isNullLogger()
Return whether a #NullLogger is currently active.
static Logger * create(const char *name=ASSIMP_DEFAULT_LOG_NAME, LogSeverity severity=NORMAL, unsigned int defStreams=aiDefaultLogStream_DEBUGGER|aiDefaultLogStream_FILE, IOSystem *io=nullptr)
Creates a logging instance.
static Logger * get()
Getter for singleton instance.
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:93
CPP-API: Primary logging facility of Assimp.
Definition: DefaultLogger.hpp:74
Definition: ai_assert.h:50
static void set(Logger *logger)
Setup a custom Logger implementation.