LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
LibCarna::base::Log::TextWriter Class Referenceabstract

Abstract implementation of the Writer interface, that formats log messages along with their severity as pure ASCII character chains. More...

#include <Log.hpp>

+ Inheritance diagram for LibCarna::base::Log::TextWriter:
+ Collaboration diagram for LibCarna::base::Log::TextWriter:

Public Member Functions

virtual void write (Severity, const std::string &) const override
 Logs entry with severity.
 
- Public Member Functions inherited from LibCarna::base::Log::Writer
virtual ~Writer ()
 Deletes.
 

Protected Member Functions

virtual void writeLine (Severity severity, const std::string &formattedEntry) const =0
 Logs formattedEntry with severity.
 

Detailed Description

Abstract implementation of the Writer interface, that formats log messages along with their severity as pure ASCII character chains.

Author
Leonid Kostrykin

Definition at line 164 of file Log.hpp.

Member Function Documentation

◆ write()

virtual void LibCarna::base::Log::TextWriter::write ( Severity  severity,
const std::string &  entry 
) const
overridevirtual

Logs entry with severity.

Implements LibCarna::base::Log::Writer.

◆ writeLine()

virtual void LibCarna::base::Log::TextWriter::writeLine ( Severity  severity,
const std::string &  formattedEntry 
) const
protectedpure virtual

Logs formattedEntry with severity.

Implemented in LibCarna::base::Log::StdWriter.


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