2#ifndef GRAMODS_CORE_LOGFILEMESSAGESINK
3#define GRAMODS_CORE_LOGFILEMESSAGESINK
5#include <gmCore/MessageSink.hh>
10BEGIN_NAMESPACE_GMCORE;
27 void setLogFilePath(std::filesystem::path path);
36 void setAppend(
bool on);
46 void output(Message msg);
53 std::filesystem::path logfile_path;
54 std::ofstream logfile;
Message sink that writes to a specified log file.
Definition LogFileMessageSink.hh:16
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