Parent class for LogWriters.
More...
#include <gempyre_utils.h>
|
| LogWriter () |
| Constructor.
|
|
virtual | ~LogWriter () |
| Destructor.
|
|
| LogWriter (const GempyreUtils::LogWriter &)=delete |
|
LogWriter & | operator= (const GempyreUtils::LogWriter &)=delete |
|
virtual std::string | header (LogLevel logLevel) |
| header of class, called before every line, default just returns a timestamp and loglevel string.
|
|
virtual bool | do_write (const char *buffer, size_t count)=0 |
| Implement write to the medium.
|
|
virtual bool | has_ansi () const |
| override to return true if this write supports ANSI colors, default just return false
|
|
Parent class for LogWriters.
◆ do_write()
virtual bool GempyreUtils::LogWriter::do_write |
( |
const char * |
buffer, |
|
|
size_t |
count |
|
) |
| |
|
pure virtual |
Implement write to the medium.
- Parameters
-
buffer | Buffer's address |
count | it's size |
- Returns
◆ header()
virtual std::string GempyreUtils::LogWriter::header |
( |
LogLevel |
logLevel | ) |
|
|
virtual |
header of class, called before every line, default just returns a timestamp and loglevel string.
- Parameters
-
- Returns
The documentation for this class was generated from the following file: