CppLogging  1.0.4.0
C++ Logging Library
appender.h
Go to the documentation of this file.
1 
9 #ifndef CPPLOGGING_APPENDER_H
10 #define CPPLOGGING_APPENDER_H
11 
12 #include "logging/element.h"
13 #include "logging/record.h"
14 
15 namespace CppLogging {
16 
18 
32 class Appender : public Element
33 {
34 public:
36 
39  virtual void AppendRecord(Record& record) = 0;
40 
42  virtual void Flush() {}
43 };
44 
45 } // namespace CppLogging
46 
47 #endif // CPPLOGGING_APPENDER_H
Logging appender interface.
Definition: appender.h:33
virtual void Flush()
Flush the logging appender.
Definition: appender.h:42
virtual void AppendRecord(Record &record)=0
Append the given logging record.
Logging element interface.
Definition: element.h:26
Logging record.
Definition: record.h:37
Logging element interface definition.
C++ Logging project definitions.
Definition: appender.h:15
Logging record definition.