roadrunner  2.6.0
Fast simulator for SBML models
Public Member Functions | List of all members
rr::LoggingBuffer Class Reference

Poco LogStream dumps to the log when a newline i.e. More...

#include <rrLogger.h>

Public Member Functions

 LoggingBuffer (int level, const char *file, int line)
 
 ~LoggingBuffer ()
 dump the contents of the std::stringstream to the log.
 
std::ostream & stream ()
 get the stream this buffer holds.
 

Detailed Description

Poco LogStream dumps to the log when a newline i.e.

std::endl is encountered, howeve the old proprietary logging system dumps basically when the stream object goes out of scope.

This object allows us to to use the new Poco logging system and maintain compatability with all existing code.

This object is returne from the rr::Logger, exposes a std::ostream interface, and and dumps to the log when it goes out of scope.

Levels are determined by Poco::Message::Priority:


The documentation for this class was generated from the following files: