CppLogging
1.0.4.0
C++ Logging Library
|
Output stream (std::ostream) appender. More...
#include <ostream_appender.h>
Public Member Functions | |
OstreamAppender (std::ostream &stream) | |
Initialize the appender with a given output stream. More... | |
OstreamAppender (const OstreamAppender &)=delete | |
OstreamAppender (OstreamAppender &&)=delete | |
virtual | ~OstreamAppender ()=default |
OstreamAppender & | operator= (const OstreamAppender &)=delete |
OstreamAppender & | operator= (OstreamAppender &&)=delete |
void | AppendRecord (Record &record) override |
Append the given logging record. More... | |
void | Flush () override |
Flush the logging appender. More... | |
Public Member Functions inherited from CppLogging::Element | |
virtual bool | IsStarted () const noexcept |
Is the logging element started? More... | |
virtual bool | Start () |
Start the logging element. More... | |
virtual bool | Stop () |
Stop the logging element. More... | |
Output stream (std::ostream) appender.
Output stream (std::ostream) appender prints the given logging record into the given instance of std::ostream.
Not thread-safe.
Definition at line 25 of file ostream_appender.h.
|
inlineexplicit |
Initialize the appender with a given output stream.
stream | - Output stream |
Definition at line 32 of file ostream_appender.h.
|
delete |
|
delete |
|
virtualdefault |
|
overridevirtual |
Append the given logging record.
record | - Logging record |
Implements CppLogging::Appender.
Definition at line 13 of file ostream_appender.cpp.
|
overridevirtual |
Flush the logging appender.
Reimplemented from CppLogging::Appender.
Definition at line 23 of file ostream_appender.cpp.
|
delete |
|
delete |