include/usgcommon/logger.h
@@ -17,7 +17,7 @@ FILE *logFile; void dolog(const char *fmt, va_list ap, int level, int err = 0) { char buf[MAXBUF]; char buf[MAXLINE]; struct timeval tv; struct tm *info; @@ -42,6 +42,8 @@ fflush(NULL); /* flushes all stdio output streams */ } void init(); private: @@ -64,7 +66,7 @@ void error(const char *fmt, ...); void error(int err, const char *fmt, ...); void fatal(const char *fmt, ...); void fatal(int err, const char *fmt, ...) ; static const char * strlevel(int level); };