#include <logserver.h>
Inheritance diagram for zeitgeist::LogServer:
Public Types | |
enum | EPriorityLevel { eNone = 0, eDebug = 1, eNormal = 2, eWarning = 4, eError = 8, eAll = 0xffffffff } |
defines different priority levels assigned to a log message. More... | |
Public Member Functions | |
LogServer (unsigned int size=1024) | |
constructs a logserver with a an internal stream buffer of size | |
virtual | ~LogServer () |
void | AddStream (std::ostream *stream, unsigned int mask=eAll) |
adds a stream to the list of streams. | |
bool | RemoveStream (const std::ostream *stream) |
removes a stream from the list of streams. | |
bool | SetPriorityMask (const std::ostream *stream, unsigned int mask) |
sets the priority mask of a stream in the list. | |
unsigned int | GetPriorityMask (const std::ostream *stream) const |
gets priority mask of a stream in the list. | |
LogServer & | Priority (unsigned int prio) |
selects the priority for the messages to be written. | |
LogServer & | Debug () |
selects the debug priority and returns a reference to this logserver | |
LogServer & | Normal () |
selects the normal priority and returns a reference to this logserver | |
LogServer & | Warning () |
selects the warning priority and returns a reference to this logserver | |
LogServer & | Error () |
selects the error priority and returns a reference to this logserver | |
void | Printf (const char *inFormat,...) |
provides an printf-style interface. | |
Private Member Functions | |
LogServer (const LogServer &obj) | |
LogServer & | operator= (const LogServer &obj) |
const LogServerStreamBuf & | GetStreamBuf () const |
LogServerStreamBuf & | GetStreamBuf () |
It is THE logging facility used within zeitgeist.
Definition at line 45 of file logserver.h.
|
defines different priority levels assigned to a log message. The values are designed as a bitmap and can be combined, to trigger different filters Definition at line 54 of file logserver.h. |
|
constructs a logserver with a an internal stream buffer of size
Definition at line 29 of file logserver.cpp. |
|
Definition at line 34 of file logserver.cpp. |
|
|
|
adds a stream to the list of streams. First, it is checked if the stream is already in. If the stream is found, we only install a new priority mask, so no stream can be added twice.
Definition at line 42 of file logserver.cpp. References zeitgeist::LogServerStreamBuf::AddStream(), and GetStreamBuf(). Here is the call graph for this function: ![]() |
|
selects the debug priority and returns a reference to this logserver
Definition at line 112 of file logserver.h. References eDebug, and Priority(). Here is the call graph for this function: ![]() |
|
selects the error priority and returns a reference to this logserver
Definition at line 124 of file logserver.h. References eError, and Priority(). Here is the call graph for this function: ![]() |
|
gets priority mask of a stream in the list.
Definition at line 52 of file logserver.cpp. References zeitgeist::LogServerStreamBuf::GetPriorityMask(), and GetStreamBuf(). Here is the call graph for this function: ![]() |
|
Definition at line 90 of file logserver.cpp. |
|
Definition at line 84 of file logserver.cpp. Referenced by AddStream(), GetPriorityMask(), Priority(), RemoveStream(), and SetPriorityMask(). |
|
selects the normal priority and returns a reference to this logserver
Definition at line 116 of file logserver.h. References eNormal, and Priority(). Here is the call graph for this function: ![]() |
|
|
|
provides an printf-style interface.
Definition at line 69 of file logserver.cpp. |
|
selects the priority for the messages to be written. It returns a reference to this logserver instance, allowing multiple priority changes in one stream expression, e.g. log << Priority(eNormal) << "normal msg" << Priority(eDbug) << "debug msg" Definition at line 62 of file logserver.cpp. References GetStreamBuf(), and zeitgeist::LogServerStreamBuf::SetCurrentPriority(). Referenced by Debug(), Error(), Normal(), and Warning(). Here is the call graph for this function: ![]() |
|
removes a stream from the list of streams.
Definition at line 47 of file logserver.cpp. References GetStreamBuf(), and zeitgeist::LogServerStreamBuf::RemoveStream(). Here is the call graph for this function: ![]() |
|
sets the priority mask of a stream in the list.
Definition at line 57 of file logserver.cpp. References GetStreamBuf(), and zeitgeist::LogServerStreamBuf::SetPriorityMask(). Here is the call graph for this function: ![]() |
|
selects the warning priority and returns a reference to this logserver
Definition at line 120 of file logserver.h. References eWarning, and Priority(). Here is the call graph for this function: ![]() |