86 std::ostream &
entry(
enum logLevels level,
const char *file = 0,
int line = -1);
104 #define CPR_LOG(level) (clearpath::Logger::instance().entry((level), __FILE__, __LINE__ )) 105 #define CPR_ERR() CPR_LOG(clearpath::Logger::ERROR) 106 #define CPR_EXCEPT() (clearpath::Logger::instance().entry(clearpath::Logger::EXCEPTION)) 107 #define CPR_WARN() CPR_LOG(clearpath::Logger::WARNING) 108 #define CPR_INFO() CPR_LOG(clearpath::Logger::INFO) 109 #define CPR_DTL() CPR_LOG(clearpath::Logger::DETAIL) 111 #endif //CPR_LOGGER_H static const char * levelNames[]
static Logger & instance()
std::ostream & entry(enum logLevels level, const char *file=0, int line=-1)
friend void loggerTermHandler(int signal)
void setStream(std::ostream *stream)
std::ofstream * nullStream
void setLevel(enum logLevels newLevel)
void setEnabled(bool enabled)