44 #ifndef INCLUDED_AI_LOGGER_H 45 #define INCLUDED_AI_LOGGER_H 52 #define MAX_LOG_MESSAGE_LENGTH 1024u 61 :
public Intern::AllocateFromAssimpHeap
100 void debug(
const char* message);
101 inline void debug(
const std::string &message);
106 void info(
const char* message);
107 inline void info(
const std::string &message);
112 void warn(
const char* message);
113 inline void warn(
const std::string &message);
118 void error(
const char* message);
119 inline void error(
const std::string &message);
142 virtual bool attachStream(
LogStream *pStream,
143 unsigned int severity = Debugging | Err | Warn | Info) = 0;
154 virtual bool detatchStream(
LogStream *pStream,
155 unsigned int severity = Debugging | Err | Warn | Info) = 0;
172 virtual void OnDebug(
const char* message)= 0;
181 virtual void OnInfo(
const char* message) = 0;
190 virtual void OnWarn(
const char* essage) = 0;
199 virtual void OnError(
const char* message) = 0;
210 setLogSeverity(NORMAL);
222 setLogSeverity(severity);
228 m_Severity = log_severity;
240 return debug(message.c_str());
246 return error(message.c_str());
252 return warn(message.c_str());
258 return info(message.c_str());
265 #endif // !! INCLUDED_AI_LOGGER_H Basic data types and primitives, such as vectors or colors.
Assimp's CPP-API and all internal APIs.
Definition: DefaultLogger.hpp:51
void debug(const char *message)
Writes a debug message.
ErrorSeverity
Description for severity of a log message.
Definition: Logger.hpp:84
void warn(const char *message)
Writes a warning message.
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
Logger()
Default constructor.
Definition: Logger.hpp:209
Normal granularity of logging.
Definition: Logger.hpp:72
void error(const char *message)
Writes an error message.
virtual ~Logger()
Virtual destructor.
Definition: Logger.hpp:215
void info(const char *message)
Writes a info message.
LogSeverity m_Severity
Logger severity.
Definition: Logger.hpp:204
void setLogSeverity(LogSeverity log_severity)
Set a new log severity.
Definition: Logger.hpp:227
CPP-API: Abstract interface for logger implementations.
Definition: Logger.hpp:59
LogSeverity getLogSeverity() const
Get the current log severity.
Definition: Logger.hpp:233