reopen log file on SIGHUP

This commit is contained in:
Jean-Francois Dockes
2013-03-22 11:19:33 +01:00
parent df49598a8d
commit 5245f1f9d4
4 changed files with 87 additions and 35 deletions
+2
View File
@@ -66,6 +66,8 @@ class DebugLog {
extern DebugLog *getdbl();
extern const char *getfilename();
extern int setfilename(const char *fname, int trnc = 1);
extern int reopen();
#if STATICVERBOSITY >= DEBFATAL
#define LOGFATAL(X) {if (DebugLog::getdbl()->getlevel()>=DEBFATAL){DebugLog::getdbl()->prolog(DEBFATAL,__FILE__,__LINE__) ;DebugLog::getdbl()->log X;}}
#else