X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Flogger.h;h=79914ac98a2a8fcb7d3fac109eabc1c889760dfa;hb=b76777dfb4d2eea9d7b223d0eb6acdd560cc1858;hp=596f98aeedc17a6d5c97a343c144b7a567f659df;hpb=e3df3b9d267cb3839db268ff6d0be389c45ebf6d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/logger.h b/include/logger.h index 596f98aee..79914ac98 100644 --- a/include/logger.h +++ b/include/logger.h @@ -38,10 +38,6 @@ class CoreExport FileWriter : public EventHandler */ FILE* log; - /** Buffer of pending log lines to be written - */ - std::string buffer; - /** Number of write operations that have occured */ int writeops; @@ -51,10 +47,6 @@ class CoreExport FileWriter : public EventHandler */ FileWriter(InspIRCd* Instance, FILE* logfile); - /** This returns false, logfiles are writeable. - */ - virtual bool Readable(); - /** Handle pending write events. * This will flush any waiting data to disk. * If any data remains after the fprintf call, @@ -165,6 +157,7 @@ class CoreExport LogManager : public classbase LogManager(InspIRCd *Instance) { + noforkstream = NULL; ServerInstance = Instance; Logging = false; } @@ -253,7 +246,7 @@ class CoreExport LogManager : public classbase * @param loglevel Log message level (DEBUG, VERBOSE, DEFAULT, SPARSE, NONE) * @param msg The format of the message to be logged. See your C manual on printf() for details. */ - void Log(const std::string &type, int loglevel, const char *fmt, ...); + void Log(const std::string &type, int loglevel, const char *fmt, ...) CUSTOM_PRINTF(4, 5); }; #endif