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

Null appender. More...

#include <null_appender.h>

Inheritance diagram for CppLogging::NullAppender:
CppLogging::Appender CppLogging::Element

Public Member Functions

 NullAppender ()=default
 
 NullAppender (const NullAppender &)=delete
 
 NullAppender (NullAppender &&)=delete
 
virtual ~NullAppender ()=default
 
NullAppenderoperator= (const NullAppender &)=delete
 
NullAppenderoperator= (NullAppender &&)=delete
 
void AppendRecord (Record &record) override
 Append the given logging record. More...
 
- Public Member Functions inherited from CppLogging::Appender
virtual void Flush ()
 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

Null appender.

Null appender does nothing with a given logging record.

Thread-safe.

Definition at line 22 of file null_appender.h.

Constructor & Destructor Documentation

◆ NullAppender() [1/3]

CppLogging::NullAppender::NullAppender ( )
default

◆ NullAppender() [2/3]

CppLogging::NullAppender::NullAppender ( const NullAppender )
delete

◆ NullAppender() [3/3]

CppLogging::NullAppender::NullAppender ( NullAppender &&  )
delete

◆ ~NullAppender()

virtual CppLogging::NullAppender::~NullAppender ( )
virtualdefault

Member Function Documentation

◆ AppendRecord()

void CppLogging::NullAppender::AppendRecord ( Record record)
inlineoverridevirtual

Append the given logging record.

Parameters
record- Logging record

Implements CppLogging::Appender.

Definition at line 34 of file null_appender.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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