CppLogging 1.0.5.0
C++ Logging Library
Loading...
Searching...
No Matches
null_layout.h
Go to the documentation of this file.
1
9#ifndef CPPLOGGING_LAYOUTS_NULL_LAYOUT_H
10#define CPPLOGGING_LAYOUTS_NULL_LAYOUT_H
11
12#include "logging/layout.h"
13
14namespace CppLogging {
15
17
22class NullLayout : public Layout
23{
24public:
25 NullLayout() = default;
26 NullLayout(const NullLayout&) = delete;
28 virtual ~NullLayout() = default;
29
30 NullLayout& operator=(const NullLayout&) = delete;
32
33 // Implementation of Layout
34 void LayoutRecord(Record& record) override {}
35};
36
37} // namespace CppLogging
38
39#endif // CPPLOGGING_LAYOUTS_NULL_LAYOUT_H
Logging layout interface.
Definition layout.h:28
void LayoutRecord(Record &record) override
Layout the given logging record into a raw buffer.
Definition null_layout.h:34
NullLayout & operator=(const NullLayout &)=delete
virtual ~NullLayout()=default
NullLayout & operator=(NullLayout &&)=delete
NullLayout(NullLayout &&)=delete
NullLayout(const NullLayout &)=delete
Logging record.
Definition record.h:37
Logging layout interface definition.
C++ Logging project definitions.
Definition appender.h:15