]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/logger.h
Document SendTopic.
[user/henk/code/inspircd.git] / include / logger.h
index 596f98aeedc17a6d5c97a343c144b7a567f659df..79914ac98a2a8fcb7d3fac109eabc1c889760dfa 100644 (file)
@@ -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