Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::record::FileAppender Class Referencefinal

Log file appender class. More...

#include <FileAppender.h>

Inheritance diagram for sese::record::FileAppender:
sese::record::AbstractAppender

Public Types

typedef std::shared_ptr< FileAppenderPtr
 
- Public Types inherited from sese::record::AbstractAppender
typedef std::shared_ptr< AbstractAppenderPtr
 

Public Member Functions

 FileAppender (io::FileStream::Ptr file_stream, Level level=Level::DEBUG)
 
 ~FileAppender () noexcept override
 
void dump (const char *buffer, size_t size) noexcept override
 
- Public Member Functions inherited from sese::record::AbstractAppender
 AbstractAppender () noexcept=default
 
virtual ~AbstractAppender () noexcept=default
 
 AbstractAppender (Level level) noexcept
 
Level getLevel () const noexcept
 
void setLevel (Level lv) noexcept
 

Private Attributes

io::BufferedStream::Ptr bufferedStream
 
io::FileStream::Ptr fileStream
 

Additional Inherited Members

- Protected Attributes inherited from sese::record::AbstractAppender
Level level = Level::DEBUG
 Output threshold.
 

Detailed Description

Log file appender class.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ FileAppender()

sese::record::FileAppender::FileAppender ( io::FileStream::Ptr file_stream,
Level level = Level::DEBUG )
explicit

References bufferedStream, and fileStream.

◆ ~FileAppender()

sese::record::FileAppender::~FileAppender ( )
overridenoexcept

Member Function Documentation

◆ dump()

void sese::record::FileAppender::dump ( const char * buffer,
size_t size )
overridevirtualnoexcept

Member Data Documentation

◆ bufferedStream

io::BufferedStream::Ptr sese::record::FileAppender::bufferedStream
private

Referenced by FileAppender().

◆ fileStream

io::FileStream::Ptr sese::record::FileAppender::fileStream
private

Referenced by FileAppender().


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