18 #ifndef _BASE_LOGGING_IOSTREAM_STYLE_H_
19 #define _BASE_LOGGING_IOSTREAM_STYLE_H_
21 #include <base-logging/logging/logging_printf_style.h>
30 #define LOG_STREAM(PRIO) if(PRIO > BASE_LOG_PRIORITY) ; else base::logging::LogStream().get(PRIO,__PRETTY_FUNCTION__, __FILE__, __LINE__, __STRINGIFY(BASE_LOG_NAMESPACE))
32 #define LOG_STREAM(PRIO) if(PRIO > BASE_LOG_PRIORITY) ; else base::logging::LogStream().get(PRIO,__func__, __FILE__, __LINE__, __STRINGIFY(BASE_LOG_NAMESPACE))
42 #define LOG_FATAL_S LOG_STREAM(base::logging::FATAL)
43 #define LOG_ERROR_S LOG_STREAM(base::logging::ERROR)
44 #define LOG_WARN_S LOG_STREAM(base::logging::WARN)
45 #define LOG_INFO_S LOG_STREAM(base::logging::INFO)
46 #define LOG_DEBUG_S LOG_STREAM(base::logging::DEBUG)
59 Logger::getInstance()->logBuffer(mPrio,mpFuncName,mpFileName,mLineNumber,mNamespace,
os.str().c_str());
63 std::ostringstream&
get(
Priority prio,
const char* pFuncName,
const char* pFileName,
int lineNumber,
const char* name_space)
66 mpFuncName = pFuncName;
67 mpFileName = pFileName;
68 mLineNumber = lineNumber;
69 mNamespace = name_space;
74 std::ostringstream
os;
80 const char* mpFuncName;
81 const char* mpFileName;
83 const char* mNamespace;
90 #endif // _BASE_LOGGING_IOSTREAM_STYLE_H_
Definition: logging_iostream_style.h:52
LogStream()
Definition: logging_iostream_style.h:55
std::ostringstream os
Definition: logging_iostream_style.h:74
virtual ~LogStream()
Definition: logging_iostream_style.h:56
Priority
Definition: logging_printf_style.h:173
static Derived * getInstance()
Definition: Singleton.hpp:17