Logging sink for file output.
More...
#include <Sink.h>
Logging sink for file output.
Definition at line 38 of file Sink.h.
◆ ~FileSink()
virtual carl::logging::FileSink::~FileSink |
( |
| ) |
|
|
virtualdefault |
◆ FileSink()
carl::logging::FileSink::FileSink |
( |
const std::string & |
filename | ) |
|
|
inlineexplicit |
Create a FileSink that logs to the specified file.
The file is truncated upon construction.
- Parameters
-
Definition at line 48 of file Sink.h.
◆ log()
std::ostream& carl::logging::FileSink::log |
( |
| ) |
|
|
inlineoverridevirtualnoexcept |
Abstract logging interface.
The intended usage is to write any log output to the output stream returned by this function.
- Returns
- Output stream.
Implements carl::logging::Sink.
Definition at line 49 of file Sink.h.
◆ os
std::ofstream carl::logging::FileSink::os |
|
private |
File output stream.
Definition at line 40 of file Sink.h.
The documentation for this class was generated from the following file: