Library: Foundation
Package: Logging
Header: Poco/LogStream.h
This class implements a streambuf interface to a Logger.
The streambuf appends all characters written to it to a string. As soon as a CR or LF (std::endl) is written, the string is sent to the Logger, with the set priority.
Direct Base Classes: UnbufferedStreamBuf
All Base Classes: UnbufferedStreamBuf
Member Functions: getPriority, logger, setPriority
LogStreamBuf(
Logger & logger,
Message::Priority priority
);
Creates the LogStream.
~LogStreamBuf();
Destroys the LogStream.
Message::Priority getPriority() const;
Returns the priority for log messages.
Logger & logger() const;
Returns a reference to the Logger.
void setPriority(
Message::Priority priority
);
Sets the priority for log messages.