CppLogging  1.0.4.0
C++ Logging Library
null_appender.h
Go to the documentation of this file.
1 
9 #ifndef CPPLOGGING_APPENDERS_NULL_APPENDER_H
10 #define CPPLOGGING_APPENDERS_NULL_APPENDER_H
11 
12 #include "logging/appender.h"
13 
14 namespace CppLogging {
15 
17 
22 class NullAppender : public Appender
23 {
24 public:
25  NullAppender() = default;
26  NullAppender(const NullAppender&) = delete;
28  virtual ~NullAppender() = default;
29 
30  NullAppender& operator=(const NullAppender&) = delete;
32 
33  // Implementation of Appender
34  void AppendRecord(Record& record) override {}
35 };
36 
37 } // namespace CppLogging
38 
39 #endif // CPPLOGGING_APPENDERS_NULL_APPENDER_H
Logging appender interface definition.
Logging appender interface.
Definition: appender.h:33
NullAppender(NullAppender &&)=delete
NullAppender & operator=(const NullAppender &)=delete
void AppendRecord(Record &record) override
Append the given logging record.
Definition: null_appender.h:34
NullAppender(const NullAppender &)=delete
NullAppender & operator=(NullAppender &&)=delete
virtual ~NullAppender()=default
Logging record.
Definition: record.h:37
C++ Logging project definitions.
Definition: appender.h:15