2#ifndef GRAMODS_CORE_LOGFILEMESSAGESINK
3#define GRAMODS_CORE_LOGFILEMESSAGESINK
5#include <gmCore/MessageSink.hh>
10BEGIN_NAMESPACE_GMCORE;
15class LogFileMessageSink
46 void output(Message msg);
53 std::filesystem::path logfile_path;
54 std::ofstream logfile;
void setAppend(bool on)
Set to true if the messages should be appended to the end of the file, if it already exists.
Definition LogFileMessageSink.cpp:24
void setLogFilePath(std::filesystem::path path)
Sets the path to the log file to write to.
Definition LogFileMessageSink.cpp:17
void setLevel(int l)
Set the level of messages to output.
Definition LogFileMessageSink.hh:44
This is the base type for back-ends taking care of information sent to the Console class.
Definition MessageSink.hh:23