log_priority LogLevelToPriority(LogLevel level);
-template<LogLevel> struct LogTag;
-template<> struct LogTag<LogLevel::LOG_ERROR> {
- static constexpr const char* value = "\033[1;31m| ERROR |\033[0m";
-};
-template<> struct LogTag<LogLevel::LOG_WARNING> {
- static constexpr const char* value = "\033[1;33m| WARNING |\033[0m";
-};
-template<> struct LogTag<LogLevel::LOG_INFO> {
- static constexpr const char* value = "\033[1;32m| INFO |\033[0m";
-};
-template<> struct LogTag<LogLevel::LOG_DEBUG> {
- static constexpr const char* value = "\033[0m| DEBUG |\033[0m";
-};
-
template <class charT, class traits = std::char_traits<charT>>
class StringStream : private std::basic_ostringstream<charT, traits> {
public:
::utils::LogCatcher( \
::utils::LogLevel::LOG_ ## LEVEL, __tag_for_project()) \
& ::utils::StringStream<char>() \
- << std::string(::utils::LogTag<::utils::LogLevel::LOG_ ## LEVEL>::value) \
- << " : " << std::setw(36) \
- << (std::string(__FILENAME__) + ":" + std::to_string(__LINE__)).c_str() \
+ << std::setw(50) << std::right \
+ << (std::string(__FILENAME__) + ": " + std::string(__FUNCTION__) + "(" + \
+ std::to_string(__LINE__) + ")").c_str() \
<< std::setw(0) << " : " \
#endif // LOGGING_HH_