45 #ifndef INCLUDED_AI_LOGGER_H 46 #define INCLUDED_AI_LOGGER_H 55 #define MAX_LOG_MESSAGE_LENGTH 1024u 64 :
public Intern::AllocateFromAssimpHeap
103 void debug(
const char* message);
104 inline void debug(
const std::string &message);
109 void info(
const char* message);
110 inline void info(
const std::string &message);
115 void warn(
const char* message);
116 inline void warn(
const std::string &message);
121 void error(
const char* message);
122 inline void error(
const std::string &message);
145 virtual bool attachStream(
LogStream *pStream,
146 unsigned int severity = Debugging | Err | Warn | Info) = 0;
157 virtual bool detatchStream(
LogStream *pStream,
158 unsigned int severity = Debugging | Err | Warn | Info) = 0;
175 virtual void OnDebug(
const char* message)= 0;
184 virtual void OnInfo(
const char* message) = 0;
193 virtual void OnWarn(
const char* essage) = 0;
202 virtual void OnError(
const char* message) = 0;
213 setLogSeverity(NORMAL);
225 setLogSeverity(severity);
231 m_Severity = log_severity;
243 return debug(message.c_str());
249 return error(message.c_str());
255 return warn(message.c_str());
261 return info(message.c_str());
268 #endif // !! INCLUDED_AI_LOGGER_H Basic data types and primitives, such as vectors or colors.
Assimp's CPP-API and all internal APIs.
Definition: DefaultIOStream.h:51
void debug(const char *message)
Writes a debug message.
ErrorSeverity
Description for severity of a log message.
Definition: Logger.hpp:87
void warn(const char *message)
Writes a warning message.
LogSeverity
Log severity to describe the granularity of logging.
Definition: Logger.hpp:73
CPP-API: Abstract interface for log stream implementations.
Definition: LogStream.hpp:60
Logger()
Default constructor.
Definition: Logger.hpp:212
Normal granularity of logging.
Definition: Logger.hpp:75
void error(const char *message)
Writes an error message.
virtual ~Logger()
Virtual destructor.
Definition: Logger.hpp:218
void info(const char *message)
Writes a info message.
LogSeverity m_Severity
Logger severity.
Definition: Logger.hpp:207
void setLogSeverity(LogSeverity log_severity)
Set a new log severity.
Definition: Logger.hpp:230
CPP-API: Abstract interface for logger implementations.
Definition: Logger.hpp:62
LogSeverity getLogSeverity() const
Get the current log severity.
Definition: Logger.hpp:236