4 #include "rrExporter.h"
48 std::ostream &stream();
51 std::stringstream buffer;
97 static void setLevel(
int level = LOG_CURRENT);
102 static int getLevel();
107 static void disableLogging();
112 static void disableConsoleLogging();
117 static void enableConsoleLogging(
int level = LOG_CURRENT);
131 static void enableFileLogging(
const std::string& fileName =
"",
132 int level = LOG_CURRENT);
137 static void disableFileLogging();
142 static std::string getCurrentLevelAsString();
147 static std::string getFileName();
209 static void setFormattingPattern(
const std::string &format);
214 static std::string getFormattingPattern();
219 static std::string levelToString(
int level);
224 static Level stringToLevel(
const std::string& str);
229 static bool getColoredOutput();
234 static void setColoredOutput(
bool);
274 static void setProperty(
const std::string& name,
const std::string& value);
283 static void log(Level level,
const std::string& msg);
298 static void setConsoleStream(std::ostream *os);
307 lAny = Logger::LOG_ERROR,
308 lError = Logger::LOG_ERROR,
309 lWarning = Logger::LOG_WARNING,
310 lInfo = Logger::LOG_INFORMATION,
311 lDebug = Logger::LOG_DEBUG,
312 lDebug1 = Logger::LOG_TRACE,
313 lDebug2 = Logger::LOG_TRACE,
314 lDebug3 = Logger::LOG_TRACE,
315 lDebug4 = Logger::LOG_TRACE,
316 lDebug5 = Logger::LOG_TRACE,
317 lUser = Logger::LOG_TRACE
326 RR_DECLSPEC Poco::Logger &getLogger();
331 #define gLog Logger()
334 #define rrLog(level) \
335 if ((level) > rr::Logger::getLevel()) { ; } \
336 else rr::LoggingBuffer(level, __FILE__, __LINE__).stream()
338 #define rrLog(level) \
341 LoggingBuffer(level, __FILE__, __LINE__)
344 #define rrLogFatal rrLog(Logger::LOG_FATAL)
345 #define rrLogCritical rrLog(Logger::LOG_CRITICAL)
346 #define rrLogErr rrLog(Logger::LOG_ERROR)
347 #define rrLogWarn rrLog(Logger::LOG_WARNING)
348 #define rrLogNotice rrLog(Logger::LOG_NOTICE)
349 #define rrLogInfo rrLog(Logger::LOG_INFORMATION)
350 #define rrLogDebug rrLog(Logger::LOG_DEBUG)
The roadrunner logger.
Definition: rrLogger.h:63
Level
same as Poco level, repeat here to avoid including any Poco files as Poco is usually linked staticall...
Definition: rrLogger.h:71
Poco LogStream dumps to the log when a newline i.e.
Definition: rrLogger.h:36