oak - a modern logger 1.1.0
Loading...
Searching...
No Matches
oak::FileWriter Class Reference

#include <oak.hpp>

Inheritance diagram for oak::FileWriter:
oak::Writer

Public Member Functions

 FileWriter (const std::filesystem::path &path)
 
void write (const std::string &str) override
 
std::string get_name () override
 
- Public Member Functions inherited from oak::Writer
 Writer ()=default
 
virtual ~Writer ()
 
void submit (const std::string &log)
 
void write_loop ()
 
void stop ()
 

Static Public Attributes

static const std::string name = "file_writer"
 

Detailed Description

Definition at line 102 of file oak.hpp.

Constructor & Destructor Documentation

◆ FileWriter()

FileWriter::FileWriter ( const std::filesystem::path &  path)

Definition at line 77 of file oak.cpp.

Member Function Documentation

◆ get_name()

std::string FileWriter::get_name ( )
overridevirtual

Implements oak::Writer.

Definition at line 98 of file oak.cpp.

◆ write()

void FileWriter::write ( const std::string &  str)
overridevirtual

Implements oak::Writer.

Definition at line 89 of file oak.cpp.

Field Documentation

◆ name

const std::string FileWriter::name = "file_writer"
static

Definition at line 106 of file oak.hpp.


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