#include <logstream.h>
Collaboration diagram for LogSource:

Public Member Functions | |
| LogSource () | |
| void | AttachSink (LogSink *pkSink) |
| void | DetachSink (LogSink *pkSink) |
| void | Write (const std::string &rstrMsg) |
| void | SetLogLevel (unsigned int uiLevel) |
| unsigned int | GetLogLevel () |
| void | PushLogLevel (unsigned int uiLevel) |
| void | PopLogLevel () |
| void | SetLogThreshold (unsigned int uiLevel) |
| void | SetErrorCallback (LogErrorCallback *pkCallback) |
Protected Attributes | |
| LogSourceStreamBuf | m_kStreamBuf |
| std::vector< LogSink * > | m_vpkSinks |
| unsigned int | m_uiLogLevel |
| unsigned int | m_uiThreshold |
| LogErrorCallback * | m_pkErrorCallback |
| std::vector< unsigned int > | m_vuiLogLevelStack |
|
|
|
|
|
Attach a data sink to this source
|
|
|
Detach a data sink from this source
|
|
|
Writes data to each data sink
|
|
|
Set current log level
|
|
|
|
|
|
Push the current log level on the stack and set new level
|
|
|
Pop the and restore current log level from the stack |
|
|
Set log threshold
|
|
|
Set error callback method
|
|
|
Our stream buffer |
|
|
List of all data sinks |
|
|
The current loglevel for the source |
|
|
Current log threshold |
|
|
Error callback |
|
|
Loglevel stack |
1.3.5