]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/logger.h
Rename OnClientProtocolProcessTag to OnProcessTag.
[user/henk/code/inspircd.git] / include / logger.h
index 2ea280be8b429cf596fe3ba6e129ea5c3d930313..5d4a80d9f219756ea149a434d999cbe68f6df39b 100644 (file)
@@ -41,14 +41,18 @@ class CoreExport FileWriter
         */
        FILE* log;
 
+       /** The number of write operations after which we should flush.
+        */
+       unsigned int flush;
+
        /** Number of write operations that have occured
         */
-       int writeops;
+       unsigned int writeops;
 
  public:
        /** The constructor takes an already opened logfile.
         */
-       FileWriter(FILE* logfile);
+       FileWriter(FILE* logfile, unsigned int flushcount);
 
        /** Write one or more preformatted log lines.
         * If the data cannot be written immediately,
@@ -114,7 +118,7 @@ class CoreExport LogStream : public classbase
 
 typedef std::map<FileWriter*, int> FileLogMap;
 
-class CoreExport LogManager
+class CoreExport LogManager : public fakederef<LogManager>
 {
  private:
        /** Lock variable, set to true when a log is in progress, which prevents further loggging from happening and creating a loop.