log4shib::CategoryStream Class Reference
This class enables streaming simple types and objects to a category.
More...
#include <CategoryStream.hh>
List of all members.
Detailed Description
This class enables streaming simple types and objects to a category.
Use category.errorStream(), etc. to obtain a CategoryStream class.
Member Typedef Documentation
Constructor & Destructor Documentation
Construct a CategoryStream for given Category with given priority.
- Parameters:
-
| category | The category this stream will send log messages to. |
| priority | The priority the log messages will get or Priority::NOTSET to silently discard any streamed in messages. |
log4shib::CategoryStream::~CategoryStream |
( |
|
) |
|
Member Function Documentation
void log4shib::CategoryStream::flush |
( |
|
) |
|
Flush the contents of the stream buffer to the Category and empties the buffer.
Category& log4shib::CategoryStream::getCategory |
( |
|
) |
const [inline] |
Priority::Value log4shib::CategoryStream::getPriority |
( |
|
) |
const throw () [inline] |
Returns the priority for this stream.
- Returns:
- The priority.
template<typename T >
CategoryStream& log4shib::CategoryStream::operator<< |
( |
const T & |
t |
) |
[inline] |
Stream in arbitrary types and objects.
- Parameters:
-
| t | The value or object to stream in. |
- Returns:
- A reference to itself.
Friends And Related Function Documentation
The documentation for this class was generated from the following files: