Class to manage the debug logging stream. More...
#include <logstream.hxx>
Public Member Functions | |
| logstream (std::ostream &out) | |
| The default is to send messages to cerr. | |
| void | set_output (std::ostream &out) |
| Set the output stream. | |
| void | setLogLevels (sgDebugClass c, sgDebugPriority p) |
| Set the global log class and priority level. | |
| std::ostream & | operator<< (const loglevel &l) |
| Output operator to capture the debug level and priority of a message. | |
Friends | |
| logstream & | sglog () |
Class to manage the debug logging stream.
Definition at line 227 of file logstream.hxx.
| logstream::logstream | ( | std::ostream & | out | ) | [inline] |
The default is to send messages to cerr.
| out | output stream |
Definition at line 234 of file logstream.hxx.
| std::ostream & logstream::operator<< | ( | const loglevel & | l | ) | [inline] |
Output operator to capture the debug level and priority of a message.
| l | log level |
Definition at line 269 of file logstream.hxx.
| void logstream::set_output | ( | std::ostream & | out | ) | [inline] |
| void logstream::setLogLevels | ( | sgDebugClass | c, | |
| sgDebugPriority | p | |||
| ) |
Set the global log class and priority level.
| c | debug class | |
| p | priority |
Definition at line 101 of file logstream.cxx.
| logstream & sglog | ( | ) | [friend] |
Return the one and only logstream instance. We use a function instead of a global object so we are assured that cerr has been initialised.
Definition at line 283 of file logstream.hxx.
1.6.1