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

Logging element interface. More...

#include <element.h>

Inheritance diagram for CppLogging::Element:
CppLogging::Appender CppLogging::Filter CppLogging::Layout CppLogging::Processor CppLogging::ConsoleAppender CppLogging::DebugAppender CppLogging::ErrorAppender CppLogging::FileAppender CppLogging::MemoryAppender CppLogging::NullAppender CppLogging::OstreamAppender CppLogging::RollingFileAppender CppLogging::SyslogAppender CppLogging::LevelFilter CppLogging::LoggerFilter CppLogging::MessageFilter CppLogging::SwitchFilter CppLogging::Trigger CppLogging::BinaryLayout CppLogging::EmptyLayout CppLogging::HashLayout CppLogging::NullLayout CppLogging::TextLayout CppLogging::AsyncWaitFreeProcessor CppLogging::AsyncWaitProcessor CppLogging::BufferedProcessor CppLogging::ExclusiveProcessor CppLogging::SyncProcessor

Public Member Functions

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

Logging element interface.

Logging filter takes an instance of a single logging record and performs some checks to detect if the record should be filered out and not processed anymore.

See also
Appender
Filter
Layout
Processor

Definition at line 25 of file element.h.

Member Function Documentation

◆ IsStarted()

virtual bool CppLogging::Element::IsStarted ( ) const
inlinevirtualnoexcept

Is the logging element started?

Reimplemented in CppLogging::Processor, CppLogging::RollingFileAppender, and CppLogging::FileAppender.

Definition at line 29 of file element.h.

◆ Start()

virtual bool CppLogging::Element::Start ( )
inlinevirtual

Start the logging element.

Returns
'true' if the logging element was successfully started, 'false' if the logging element failed to start

Reimplemented in CppLogging::AsyncWaitProcessor, CppLogging::AsyncWaitFreeProcessor, CppLogging::Processor, CppLogging::RollingFileAppender, and CppLogging::FileAppender.

Definition at line 35 of file element.h.

◆ Stop()

virtual bool CppLogging::Element::Stop ( )
inlinevirtual

Stop the logging element.

Returns
'true' if the logging element was successfully stopped, 'false' if the logging element failed to stop

Reimplemented in CppLogging::AsyncWaitProcessor, CppLogging::AsyncWaitFreeProcessor, CppLogging::Processor, CppLogging::RollingFileAppender, and CppLogging::FileAppender.

Definition at line 40 of file element.h.


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