38#include <condition_variable>
84 static void setOutput(
const std::string& filename);
static void(* receiver)(const Message &)
@ Warning
Warning information.
@ Info
Information to user.
@ User
User specific message.
@ DebugInfo
Message with some debug information.
@ Error
Error information while executing something.
std::condition_variable mCondition
static void setLevel(MessageType level)
Set minimum level of message to be logged to file.
static std::queue< Message > sMessageQueue
static std::ofstream sOutputStream
static MessageType sLogLevel
static std::string sOutputFile
void writeMessage(MessageType level, const char *format,...)
static std::atomic< Log * > sLogInstance
static void setUserReceiver(void(*userFunc)(const Message &))
Set user function to receive newly sent messages to logger.
static const std::string & getOutput()
Get the filename of log.
static void sendMessage(MessageType type, const std::string &text)
Add a new message to log.
static void setOutput(const std::string &filename)
Open file where to log the messages.
This is an implementation of AdditiveCCD based on peridyno.