77 std::ostream &
entry(
enum logLevels level,
const char *file = 0,
int line = -1);
95 #define CPR_LOG(level) (sawyer::Logger::instance().entry((level), __FILE__, __LINE__ )) 96 #define CPR_ERR() CPR_LOG(sawyer::Logger::ERROR) 97 #define CPR_EXCEPT() (sawyer::Logger::instance().entry(sawyer::Logger::EXCEPTION)) 98 #define CPR_WARN() CPR_LOG(sawyer::Logger::WARNING) 99 #define CPR_INFO() CPR_LOG(sawyer::Logger::INFO) 100 #define CPR_DTL() CPR_LOG(sawyer::Logger::DETAIL) 102 #endif //CPR_LOGGER_H std::ostream & entry(enum logLevels level, const char *file=0, int line=-1)
static Logger & instance()
void setEnabled(bool enabled)
void setStream(std::ostream *stream)
static const char * levelNames[]
friend void loggerTermHandler(int signal)
void setLevel(enum logLevels newLevel)
std::ofstream * nullStream