A stream that tracks its own level of logging. More...
#include <streamlogging.h>
Public Member Functions | |
LogStream (std::basic_ostream< CharType, CharTraits > &OutputStream, LogLevel WillLog=LL_Highest) | |
Buffer Stealing Constructor. More... | |
LogLevel | GetLoggingLevel () |
What will currently be logged? More... | |
LogStream< CharType, CharTraits > & | operator<< (LogStream< CharType, CharTraits > &(*pf)(LogStream< CharType, CharTraits > &)) |
Custom Manipulator inserter. More... | |
void | SetLoggingLevel (LogLevel NewLevel) |
Change the level of what this Stream is logging. More... | |
A stream that tracks its own level of logging.
CharType | This is kind of character that the stream will work with. |
CharTraits | The traits (move, equality, assignment, etc...) of the character type passed in |
Instances of this stream can be configured to treat log messages differently depending on the LogLevel of the message and Level actively being logged. In other regards this is a normal output stream.
Definition at line 159 of file streamlogging.h.
|
inline |
Buffer Stealing Constructor.
When used to create a LogStream this will use the rdbuf of another std::basic_ostream
OutputStream | This is the stream to steal the buffer from |
WillLog | The starting LogLevel to capture, which Defaults to LL_Highest. |
Definition at line 171 of file streamlogging.h.
|
inline |
What will currently be logged?
Definition at line 183 of file streamlogging.h.
|
inline |
Custom Manipulator inserter.
pf | Accepts a pointer to a LogStream Manipulator |
Definition at line 189 of file streamlogging.h.
|
inline |
Change the level of what this Stream is logging.
NewLevel | After this returns any messages sent to this stream will be compared against this. |
Definition at line 178 of file streamlogging.h.