PLaSK library
Loading...
Searching...
No Matches
plask::StderrLogger Struct Reference
Inheritance diagram for plask::StderrLogger:
[legend]
Collaboration diagram for plask::StderrLogger:
[legend]

Public Member Functions

const charhead (plask::LogLevel level)
 
void writelog (plask::LogLevel level, const std::string &msg) override
 Log a message.
 
- Public Member Functions inherited from plask::Logger
 Logger ()
 
virtual ~Logger ()
 

Additional Inherited Members

- Public Types inherited from plask::Logger
enum  ColorMode { COLOR_NONE , COLOR_ANSI }
 
- Public Attributes inherited from plask::Logger
ColorMode color
 Log coloring mode.
 
- Protected Attributes inherited from plask::Logger
std::string prefix
 Prefix to add to every log line.
 

Detailed Description

Definition at line 72 of file log.cpp.

Member Function Documentation

◆ head()

const char * plask::StderrLogger::head ( plask::LogLevel  level)

Definition at line 133 of file log.cpp.

◆ writelog()

void plask::StderrLogger::writelog ( plask::LogLevel  level,
const std::string &  msg 
)
overridevirtual

Log a message.

Parameters
levellog level to log
msglog message

Implements plask::Logger.

Definition at line 178 of file log.cpp.


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