BCLog.h
140 static void OpenLog(const std::string& filename = "log.txt", BCLog::LogLevel loglevelfile = BCLog::debug, BCLog::LogLevel loglevelscreen = BCLog::summary);
157 static void Out(BCLog::LogLevel loglevelfile, BCLog::LogLevel loglevelscreen, const std::string& message);
static bool GetPrefix()
Returns true if the loglevel is prefixed to every message.
Definition: BCLog.h:94
static BCLog::LogLevel GetLogLevelFile()
Returns the minimum log level for file output.
Definition: BCLog.h:82
static void SetLogLevel(BCLog::LogLevel loglevelfile, BCLog::LogLevel loglevelscreen)
Sets the minimum log level for file and screen output.
Definition: BCLog.h:117
static void SetLogLevel(BCLog::LogLevel loglevel)
Sets the minimum log level for file and screen output.
Definition: BCLog.h:123
static void Out(BCLog::LogLevel loglevelfile, BCLog::LogLevel loglevelscreen, const std::string &message)
Writes string to the file and screen log if the log level is equal or greater than the minimum...
Definition: BCLog.cxx:70
static void SetLogLevelFile(BCLog::LogLevel loglevel)
Sets the minimum log level for file output.
Definition: BCLog.h:104
static void StartupInfo()
Writes startup information onto screen and into a logfile.
Definition: BCLog.cxx:90
static void SetLogLevelScreen(BCLog::LogLevel loglevel)
Sets the minimum log level for screen output.
Definition: BCLog.h:110
static void OpenLog(const std::string &filename="log.txt", BCLog::LogLevel loglevelfile=BCLog::debug, BCLog::LogLevel loglevelscreen=BCLog::summary)
Opens log file and sets minimum log levels for file and screen output.
Definition: BCLog.cxx:45
static void SetPrefix(bool flag)
Toggle if the loglevel is prefixed to every message.
Definition: BCLog.h:128
static std::string ToString(BCLog::LogLevel)
Converts a log level to a string.
Definition: BCLog.cxx:119
static BCLog::LogLevel GetLogLevelScreen()
Returns the minimum log level for screen output.
Definition: BCLog.h:88