CPP-API: Abstract interface for log stream implementations.
More...
#include <LogStream.hpp>
Inherits Intern::AllocateFromAssimpHeap.
CPP-API: Abstract interface for log stream implementations.
Several default implementations are provided, see aiDefaultLogStream for more details. Writing your own implementation of LogStream is just necessary if these are not enough for your purpose.
◆ LogStream()
Assimp::LogStream::LogStream |
( |
| ) |
|
|
inlineprotecteddefault |
◆ ~LogStream()
Assimp::LogStream::~LogStream |
( |
| ) |
|
|
inlinevirtualdefault |
◆ createDefaultStream()
Creates a default log stream.
- Parameters
-
streams | Type of the default stream |
name | For aiDefaultLogStream_FILE: name of the output file |
io | For aiDefaultLogStream_FILE: IOSystem to be used to open the output file. Pass nullptr for the default implementation. |
- Returns
- New LogStream instance.
◆ write()
virtual void Assimp::LogStream::write |
( |
const char * |
message | ) |
|
|
pure virtual |
Overwrite this for your own output methods.
Log messages may consist of multiple lines and you shouldn't expect a consistent formatting. If you want custom formatting (e.g. generate HTML), supply a custom instance of Logger to #DefaultLogger:set(). Usually you can expect that a log message is exactly one line and terminated with a single
character.
- Parameters
-
message | Message to be written |
The documentation for this class was generated from the following file: