This is a utility class which you can use to stream messages into a category object. More...
|CategoryStream (Category *rt_category, log4cpp::Priority::Value priority)|
|Construct a CategoryStream for given Category with given priority. |
|CategoryStream (const CategoryStream &rhs)|
|Copy-constructor needed because the output string stream can't be copied. |
|Destructor for CategoryStream which also flushes any remaining data to the Category object. |
|Flush the contents of the stream buffer to the Category and empties the buffer. |
|template<typename T >|
|CategoryStream &||operator<< (const T &t)|
|Stream in arbitrary types and objects. |
This is a utility class which you can use to stream messages into a category object.
It provides an std::iostream like syntax using the << operator, but you need to call flush() in order to do the actual write of your message.
|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.|
|CategoryStream& operator<<||(||const T &||t||)||