CppLogging
1.0.4.0
C++ Logging Library
|
Logging trigger. More...
#include <trigger.h>
Public Member Functions | |
Trigger (bool state=true) | |
Initialize trigger with an initial logging state (enabled or disabled) More... | |
Trigger (const Trigger &)=delete | |
Trigger (Trigger &&)=delete | |
virtual | ~Trigger ()=default |
Trigger & | operator= (const Trigger &)=delete |
Trigger & | operator= (Trigger &&)=delete |
bool | IsEnabled () noexcept |
Is logging enabled? More... | |
void | Enable () noexcept |
Enable logging. More... | |
void | Disable () noexcept |
Disable logging. More... | |
void | Toggle () noexcept |
Toggle logging. More... | |
bool | FilterRecord (Record &record) override |
Filter the given logging record. 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... | |
Logging trigger.
Logging trigger is a special filter that allows to enable or disable logging.
Thread-safe.
|
inlineexplicit |
|
delete |
|
delete |
|
virtualdefault |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineoverridevirtual |
Filter the given logging record.
record | - Logging record |
Implements CppLogging::Filter.
|
inlinenoexcept |
|
inlinenoexcept |