4 #include "rrExporter.h"
41 std::stringstream buffer;
111 int level = LOG_CURRENT);
253 static void setProperty(
const std::string& name,
const std::string& value);
262 static void log(
Level level,
const std::string& msg);
305 RR_DECLSPEC Poco::Logger &getLogger();
310 #define gLog Logger()
314 if (level > rr::Logger::getLevel()) { ; } \
315 else rr::LoggingBuffer(level, __FILE__, __LINE__).stream()
320 LoggingBuffer(level, __FILE__, __LINE__)
Definition: rrLogger.h:53
static void disableConsoleLogging()
static void disableFileLogging()
static void disableLogging()
static void setLevel(int level=LOG_CURRENT)
static std::string getFileName()
static void log(Level level, const std::string &msg)
static bool getColoredOutput()
Level
Definition: rrLogger.h:61
@ LOG_TRACE
A debugging message.
Definition: rrLogger.h:70
@ LOG_INFORMATION
A notice, which is an information with just a higher priority.
Definition: rrLogger.h:68
@ LOG_CRITICAL
A fatal error. The application will most likely terminate. This is the highest priority.
Definition: rrLogger.h:64
@ LOG_NOTICE
A warning. An operation completed with an unexpected result.
Definition: rrLogger.h:67
@ LOG_WARNING
An error. An operation did not complete successfully, but the application as a whole is not affected.
Definition: rrLogger.h:66
@ LOG_DEBUG
An informational message, usually denoting the successful completion of an operation.
Definition: rrLogger.h:69
@ LOG_ERROR
A critical error. The application might not be able to continue running successfully.
Definition: rrLogger.h:65
static void setProperty(const std::string &name, const std::string &value)
static std::string getCurrentLevelAsString()
static std::string getFormattingPattern()
static std::string levelToString(int level)
static void setFormattingPattern(const std::string &format)
static void enableConsoleLogging(int level=LOG_CURRENT)
static void setColoredOutput(bool)
static Level stringToLevel(const std::string &str)
static void enableFileLogging(const std::string &fileName="", int level=LOG_CURRENT)
static void setConsoleStream(std::ostream *os)
Definition: rrLogger.h:26