115 static void SetupCallback(std::function<
void(
const Channel channel,
const std::string& message)> callback);
124 static void SetupFile(
const std::string& filename);
131 std::stringstream message;
Logging class.
Definition: Log.hpp:16
~Log()
Destructor.
Definition: Log.cpp:25
Log & operator<<(const std::string &text)
Output some text.
Definition: Log.cpp:69
static void ResetCallback()
Remove the callback function.
Definition: Log.cpp:137
Channel
Definition: Log.hpp:18
@ DEFAULT
Default channel.
Definition: Log.hpp:19
@ NUMBER_OF_CHANNELS
Maximum number of channels, ensure this is the last element of the enum if adding channels.
Definition: Log.hpp:23
@ WARNING
Warnings.
Definition: Log.hpp:21
@ INFO
Information.
Definition: Log.hpp:20
@ ERR
Error.
Definition: Log.hpp:22
static void SetupCallback(std::function< void(const Channel channel, const std::string &message)> callback)
Setup callback.
Definition: Log.cpp:132
Log(const Channel channel=DEFAULT)
Constructor.
Definition: Log.cpp:19
static void SetupFile(const std::string &filename)
Setup file to log to.
Definition: Log.cpp:141
static void CloseFile()
Close any open logging file.
Definition: Log.cpp:147