14 #ifndef __LARCAFFELOGGER_H__
15 #define __LARCAFFELOGGER_H__
36 logger(
const std::string& name=
"no_name")
56 static std::map<std::string,larcaffe::logger> *
_logger_m;
72 if(
_name < rhs.name())
return true;
73 if(
_name > rhs.name())
return false;
100 const std::string&
function )
const;
103 const std::string&
function,
104 const unsigned int line_num )
const;
107 const std::string&
function,
108 const unsigned int line_num,
109 const std::string& file_name)
const;
116 #define LARCAFFE_DEBUG(obj) obj.send(::larcaffe::msg::kDEBUG,__FUNCTION__,__LINE__,__FILE__)
117 #define LARCAFFE_INFO(obj) obj.send(::larcaffe::msg::kINFO,__FUNCTION__,__LINE__)
118 #define LARCAFFE_NORMAL(obj) obj.send(::larcaffe::msg::kNORMAL,__FUNCTION__)
119 #define LARCAFFE_WARNING(obj) obj.send(::larcaffe::msg::kWARNING,__FUNCTION__)
120 #define LARCAFFE_ERROR(obj) obj.send(::larcaffe::msg::kERROR,__FUNCTION__,__LINE__)
121 #define LARCAFFE_CRITICAL(obj) obj.send(::larcaffe::msg::kCRITICAL,__FUNCTION__,__LINE__,__FILE__)