60 const char *Logger::levelNames[] = {
"ERROR",
"EXCEPTION",
"WARNING",
"INFO",
"DETAIL"};
64 Logger::instance().close();
66 if ((signum == SIGABRT) || (signum == SIGSEGV))
72 signal(signum, SIG_DFL);
73 kill(getpid(), signum);
115 if (file || (line >= 0))
118 if (file) { *
stream << file; }
120 if (file && (line >= 0)) { *
stream <<
","; }
121 if (line >= 0) { *
stream << line; }
std::ostream & entry(enum logLevels level, const char *file=0, int line=-1)
void setEnabled(bool enabled)
void setStream(std::ostream *stream)
static const char * levelNames[]
friend void loggerTermHandler(int signal)
void loggerTermHandler(int signal)
void setLevel(enum logLevels newLevel)
std::ofstream * nullStream