Commit f625ad63 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[ADD] - Wlogger now allows removal of log streams.

parent c4ebcb7d
......@@ -118,6 +118,11 @@ void WLogger::addStream( WLogStream::SharedPtr s )
m_outputs.push_back( s );
}
void WLogger::removeStream( WLogStream::SharedPtr s )
{
m_outputs.remove( s );
}
wlog::WStreamedLogger::Buffer::~Buffer()
{
WLogger::getLogger()->addLogMessage( m_logString.str(), m_source, m_level );
......
......@@ -74,6 +74,13 @@ public:
*/
void addStream( WLogStream::SharedPtr s );
/**
* Remove the given stream.
*
* \param s the stream to remove
*/
void removeStream( WLogStream::SharedPtr s );
/**
* Set the default format used for log entries.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment