docs: Update logging docs
parent
aab36ca723
commit
efeeb6a827
23
doc/dox.h
23
doc/dox.h
|
@ -472,22 +472,9 @@ Just derivate your own logger from the abstract base class LogStream and overwri
|
||||||
|
|
||||||
@code
|
@code
|
||||||
// Example stream
|
// Example stream
|
||||||
class myStream :
|
class myStream : public LogStream
|
||||||
public LogStream
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Constructor
|
|
||||||
myStream()
|
|
||||||
{
|
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
// Destructor
|
|
||||||
~myStream()
|
|
||||||
{
|
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
// Write womethink using your own functionality
|
// Write womethink using your own functionality
|
||||||
void write(const char* message)
|
void write(const char* message)
|
||||||
{
|
{
|
||||||
|
@ -496,10 +483,10 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
// Select the kinds of messages you want to receive on this log stream
|
// Select the kinds of messages you want to receive on this log stream
|
||||||
const unsigned int severity = Logger::DEBUGGING|Logger::INFO|Logger::ERR|Logger::WARN;
|
const unsigned int severity = Logger::Debugging|Logger::Info|Logger::Err|Logger::Warn;
|
||||||
|
|
||||||
// Attaching it to the default logger
|
// Attaching it to the default logger
|
||||||
Assimp::DefaultLogger::get()->attachStream( new myStream(), severity );
|
Assimp::DefaultLogger::get()->attachStream( new myStream, severity );
|
||||||
|
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
|
@ -512,10 +499,10 @@ flag set:
|
||||||
@code
|
@code
|
||||||
|
|
||||||
unsigned int severity = 0;
|
unsigned int severity = 0;
|
||||||
severity |= Logger::DEBUGGING;
|
severity |= Logger::Debugging;
|
||||||
|
|
||||||
// Detach debug messages from you self defined stream
|
// Detach debug messages from you self defined stream
|
||||||
Assimp::DefaultLogger::get()->attachStream( new myStream(), severity );
|
Assimp::DefaultLogger::get()->attachStream( new myStream, severity );
|
||||||
|
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue