CppLogging  1.0.4.0
C++ Logging Library
Public Member Functions | List of all members
CppLogging::ErrorAppender Class Reference

Error (stderr) appender. More...

#include <error_appender.h>

Inheritance diagram for CppLogging::ErrorAppender:
CppLogging::Appender CppLogging::Element

Public Member Functions

 ErrorAppender ()=default
 
 ErrorAppender (const ErrorAppender &)=delete
 
 ErrorAppender (ErrorAppender &&)=delete
 
virtual ~ErrorAppender ()=default
 
ErrorAppenderoperator= (const ErrorAppender &)=delete
 
ErrorAppenderoperator= (ErrorAppender &&)=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...
 

Detailed Description

Error (stderr) appender.

Error appender prints the given logging record into the console or system error stream (stderr).

Thread-safe.

Definition at line 23 of file error_appender.h.

Constructor & Destructor Documentation

◆ ErrorAppender() [1/3]

CppLogging::ErrorAppender::ErrorAppender ( )
default

◆ ErrorAppender() [2/3]

CppLogging::ErrorAppender::ErrorAppender ( const ErrorAppender )
delete

◆ ErrorAppender() [3/3]

CppLogging::ErrorAppender::ErrorAppender ( ErrorAppender &&  )
delete

◆ ~ErrorAppender()

virtual CppLogging::ErrorAppender::~ErrorAppender ( )
virtualdefault

Member Function Documentation

◆ AppendRecord()

void CppLogging::ErrorAppender::AppendRecord ( Record record)
overridevirtual

Append the given logging record.

Parameters
record- Logging record

Implements CppLogging::Appender.

Definition at line 15 of file error_appender.cpp.

◆ Flush()

void CppLogging::ErrorAppender::Flush ( )
overridevirtual

Flush the logging appender.

Reimplemented from CppLogging::Appender.

Definition at line 25 of file error_appender.cpp.

◆ operator=() [1/2]

ErrorAppender& CppLogging::ErrorAppender::operator= ( const ErrorAppender )
delete

◆ operator=() [2/2]

ErrorAppender& CppLogging::ErrorAppender::operator= ( ErrorAppender &&  )
delete

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