59 const char *Logger::levelNames[] = {
"ERROR",
"EXCEPTION",
"WARNING",
"INFO",
"DETAIL"};
63 Logger::instance().close();
65 if ((signum == SIGABRT) || (signum == SIGSEGV))
71 signal(signum, SIG_DFL);
72 kill(getpid(), signum);
114 if (file || (line >= 0))
117 if (file) { *
stream << file; }
119 if (file && (line >= 0)) { *
stream <<
","; }
120 if (line >= 0) { *
stream << line; }
static const char * levelNames[]
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)
void loggerTermHandler(int signal)