#include <StringStreamLogSink.hpp>
Inheritance diagram for openstudio::StringStreamLogSink:Public Member Functions | |
| std::vector< LogMessage > | logMessages () const |
| get messages out of the string stream's content | |
| void | resetStringStream () |
| reset the string stream's content | |
| std::string | string () const |
| get the string stream's content | |
| StringStreamLogSink () | |
| constructor makes a new string stream to write to and registers in the global logger | |
Public Member Functions inherited from openstudio::LogSink | |
| bool | autoFlush () const |
| get if messages are automatically flushed | |
| boost::optional< boost::regex > | channelRegex () const |
| get the regular expression to match log channels | |
| void | disable () |
| disable the sink | |
| void | enable () |
| enable the sink | |
| bool | isEnabled () const |
| is the sink enabled | |
| boost::optional< LogLevel > | logLevel () const |
| get the logging level | |
| void | resetChannelRegex () |
| reset the regular expression to match log channels | |
| void | resetLogLevel () |
| reset the core logging level | |
| void | resetThreadId () |
| reset the thread id that messages are filtered by | |
| void | setAutoFlush (bool autoFlush) |
| set if messages are automatically flushed | |
| void | setChannelRegex (const boost::regex &channelRegex) |
| set the regular expression to match log channels | |
| void | setChannelRegex (const std::string &channelRegex) |
| set the regular expression to match log channels | |
| void | setFormatter (const boost::log::formatter &fmter) |
| void | setLogLevel (LogLevel logLevel) |
| set the logging level | |
| void | setThreadId (std::thread::id threadId) |
| set the thread id that messages are filtered by | |
| std::thread::id | threadId () const |
| get the thread id that messages are filtered by | |
| void | useWorkflowGemFormatter (bool use, bool include_channel=true) |
Additional Inherited Members | |
Protected Member Functions inherited from openstudio::LogSink | |
| LogSink () | |
| LogSink (const boost::shared_ptr< detail::LogSink_Impl > &impl) | |
| void | setStream (boost::shared_ptr< std::ostream > os) |
| boost::shared_ptr< LogSinkBackend > | sink () const |
| openstudio::StringStreamLogSink::StringStreamLogSink | ( | ) |
constructor makes a new string stream to write to and registers in the global logger
| std::vector< LogMessage > openstudio::StringStreamLogSink::logMessages | ( | ) | const |
get messages out of the string stream's content
| void openstudio::StringStreamLogSink::resetStringStream | ( | ) |
reset the string stream's content
| std::string openstudio::StringStreamLogSink::string | ( | ) | const |
get the string stream's content