The FileSink class - sink writing messages to file.
More...
#include <FileSink.hh>
|
| FileSink (const std::string &filename, bool isSynchronized=false) |
| FileSink. More...
|
|
| Sink (bool isSynchronized=false) |
|
| Sink (const Sink &other)=delete |
|
| Sink (Sink &&other)=delete |
|
Sink & | operator= (const Sink &other)=delete |
|
Sink & | operator= (Sink &&other)=delete |
|
void | Sync (const std::string &message) |
|
|
virtual void | Log (const std::string &message) override |
| Log - override this method to define how the messege should be logged. More...
|
|
The FileSink class - sink writing messages to file.
◆ FileSink()
grail::FileSink::FileSink |
( |
const std::string & |
filename, |
|
|
bool |
isSynchronized = false |
|
) |
| |
FileSink.
- Parameters
-
filename | - path to logger file, if it does not exist new file will be created |
isSynchronized | |
◆ Log()
void grail::FileSink::Log |
( |
const std::string & |
message | ) |
|
|
overrideprotectedvirtual |
Log - override this method to define how the messege should be logged.
- Parameters
-
Implements grail::Sink.
The documentation for this class was generated from the following files: