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

Debug appender. More...

#include <debug_appender.h>

Inheritance diagram for CppLogging::DebugAppender:
CppLogging::Appender CppLogging::Element

Public Member Functions

 DebugAppender ()=default
 
 DebugAppender (const DebugAppender &)=delete
 
 DebugAppender (DebugAppender &&)=delete
 
virtual ~DebugAppender ()=default
 
DebugAppenderoperator= (const DebugAppender &)=delete
 
DebugAppenderoperator= (DebugAppender &&)=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

Debug appender.

Debug appender prints the given logging record into the attached debugger if present for Windows system. Under Unix systems this appender prints the given logging record into the system error stream (stderr).

Thread-safe.

Definition at line 25 of file debug_appender.h.

Constructor & Destructor Documentation

◆ DebugAppender() [1/3]

CppLogging::DebugAppender::DebugAppender ( )
default

◆ DebugAppender() [2/3]

CppLogging::DebugAppender::DebugAppender ( const DebugAppender )
delete

◆ DebugAppender() [3/3]

CppLogging::DebugAppender::DebugAppender ( DebugAppender &&  )
delete

◆ ~DebugAppender()

virtual CppLogging::DebugAppender::~DebugAppender ( )
virtualdefault

Member Function Documentation

◆ AppendRecord()

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

Append the given logging record.

Parameters
record- Logging record

Implements CppLogging::Appender.

Definition at line 19 of file debug_appender.cpp.

◆ Flush()

void CppLogging::DebugAppender::Flush ( )
overridevirtual

Flush the logging appender.

Reimplemented from CppLogging::Appender.

Definition at line 34 of file debug_appender.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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