43 #ifndef INCLUDED_AI_DEFAULTLOGGER 44 #define INCLUDED_AI_DEFAULTLOGGER 47 #include "LogStream.hpp" 48 #include "NullLogger.hpp" 57 #define ASSIMP_DEFAULT_LOG_NAME "AssimpLog.txt" 89 static Logger *create(
const char* name = ASSIMP_DEFAULT_LOG_NAME,
91 unsigned int defStreams = aiDefaultLogStream_DEBUGGER | aiDefaultLogStream_FILE,
102 static void set (
Logger *logger);
115 static bool isNullLogger();
125 unsigned int severity);
130 unsigned int severity);
147 void OnDebug(
const char* message);
150 void OnInfo(
const char* message);
153 void OnWarn(
const char* message);
156 void OnError(
const char* message);
160 void WriteToStreams(
const char* message,
ErrorSeverity ErrorSev );
167 unsigned int GetThreadID();
171 typedef std::vector<LogStreamInfo*> StreamArray;
172 typedef std::vector<LogStreamInfo*>::iterator StreamIt;
173 typedef std::vector<LogStreamInfo*>::const_iterator ConstStreamIt;
180 StreamArray m_StreamArray;
183 char lastMsg[MAX_LOG_MESSAGE_LENGTH*2];
190 #endif // !! INCLUDED_AI_DEFAULTLOGGER Assimp's CPP-API and all internal APIs.
Definition: DefaultLogger.hpp:51
CPP-API: Class to handle file I/O for C++.
Definition: IOStream.hpp:64
CPP-API: Empty logging implementation.
Definition: NullLogger.hpp:55
ErrorSeverity
Description for severity of a log message.
Definition: Logger.hpp:84
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:67
Abstract base class 'Logger', base of the logging system.
LogSeverity
Log severity to describe the granularity of logging.
Definition: Logger.hpp:70
CPP-API: Abstract interface for log stream implementations.
Definition: LogStream.hpp:56
CPP-API: Primary logging facility of Assimp.
Definition: DefaultLogger.hpp:72
CPP-API: Abstract interface for logger implementations.
Definition: Logger.hpp:59