25 #ifndef LOGGER_LOGGER_SCOPE_HPP
26 #define LOGGER_LOGGER_SCOPE_HPP
36 operator std::string()
const;
57 const unsigned int line,
58 const std::string& func,
59 const std::string& message,
60 const std::string& rootDir);
78 #define LOGS(MSG) logger::LoggerScope logScopeObj(__FILE__, __LINE__, __func__, \
79 logger::SStreamWrapper() << MSG, \
82 #define LOGS(MSG) do {} while (0)
85 #endif // LOGGER_LOGGER_SCOPE_HPP
const std::string mFunc
Definition: logger-scope.hpp:66
Class specifically for scope debug logging.
Definition: logger-scope.hpp:53
const unsigned int mLine
Definition: logger-scope.hpp:65
LoggerScope(const std::string &file, const unsigned int line, const std::string &func, const std::string &message, const std::string &rootDir)
Definition: logger-scope.cpp:35
const std::string mMessage
Definition: logger-scope.hpp:67
std::ostringstream mSStream
Definition: logger-scope.hpp:46
const std::string mRootDir
Definition: logger-scope.hpp:68
const std::string mFile
Definition: logger-scope.hpp:64
SStreamWrapper & operator<<(const T &b)
Definition: logger-scope.hpp:39
~LoggerScope()
Definition: logger-scope.cpp:52
Definition: logger-scope.hpp:33