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

Logging layout interface. More...

#include <layout.h>

Inheritance diagram for CppLogging::Layout:
CppLogging::Element CppLogging::BinaryLayout CppLogging::EmptyLayout CppLogging::HashLayout CppLogging::NullLayout CppLogging::TextLayout

Public Member Functions

virtual void LayoutRecord (Record &record)=0
 Layout the given logging record into a raw buffer. 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...
 

Detailed Description

Logging layout interface.

Logging layout takes an instance of a single logging record and convert it into a raw buffer (raw filed will be updated).

See also
NullLayout
EmptyLayout
BinaryLayout
TextLayout

Definition at line 27 of file layout.h.

Member Function Documentation

◆ LayoutRecord()

virtual void CppLogging::Layout::LayoutRecord ( Record record)
pure virtual

Layout the given logging record into a raw buffer.

This method will update the raw filed of the given logging record.

Parameters
record- Logging record

Implemented in CppLogging::TextLayout, CppLogging::NullLayout, CppLogging::HashLayout, CppLogging::EmptyLayout, and CppLogging::BinaryLayout.


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