A file sink writeing log message to one file. More...
#include <file_sink.hpp>
Inherits matador::basic_file_sink.
Public Member Functions | |
| file_sink (const std::string &path) | |
| file_sink (const char *path) | |
| ~file_sink () override | |
| std::string | path () const |
Public Member Functions inherited from matador::basic_file_sink | |
| void | write (const char *message, size_t size) override |
| void | close () override |
Public Member Functions inherited from matador::log_sink | |
| virtual | ~log_sink ()=default |
| virtual void | write (const char *message, std::size_t size)=0 |
Additional Inherited Members | |
Protected Member Functions inherited from matador::basic_file_sink | |
| basic_file_sink (FILE *f) | |
A file sink writeing log message to one file.
The log sink writes all log message to one single file identified by a given path.
Note because by there ist no limit the file grows infinitely.
|
explicit |
Creates a file_sink with the given path. If the the path doesn't exists, it is created.
| path | The log file to write to |
|
explicit |
Creates a file_sink with the given path. If the the path doesn't exists, it is created.
| path | The log file to write to |
|
override |
Destroys the file_sink
| std::string matador::file_sink::path | ( | ) | const |
Returns the path to the log file.