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

Console (stdout) appender. More...

#include <console_appender.h>

Inheritance diagram for CppLogging::ConsoleAppender:
CppLogging::Appender CppLogging::Element

Public Member Functions

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

Console (stdout) appender.

Console appender prints the given logging record into the console or system output stream (stdout).

Thread-safe.

Definition at line 23 of file console_appender.h.

Constructor & Destructor Documentation

◆ ConsoleAppender() [1/3]

CppLogging::ConsoleAppender::ConsoleAppender ( )
default

◆ ConsoleAppender() [2/3]

CppLogging::ConsoleAppender::ConsoleAppender ( const ConsoleAppender )
delete

◆ ConsoleAppender() [3/3]

CppLogging::ConsoleAppender::ConsoleAppender ( ConsoleAppender &&  )
delete

◆ ~ConsoleAppender()

virtual CppLogging::ConsoleAppender::~ConsoleAppender ( )
virtualdefault

Member Function Documentation

◆ AppendRecord()

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

Append the given logging record.

Parameters
record- Logging record

Implements CppLogging::Appender.

Definition at line 17 of file console_appender.cpp.

◆ Flush()

void CppLogging::ConsoleAppender::Flush ( )
overridevirtual

Flush the logging appender.

Reimplemented from CppLogging::Appender.

Definition at line 56 of file console_appender.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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