X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Flogger.h;h=ca96ac242da27c3ef8df2a977c45251fb2f2bb15;hb=19487dbebc520450e457472b97d9e7bcd5160c00;hp=e3b7ee0a5b8c119559f9fbe26b2aa885a5554f8c;hpb=33141a0825e7cf2dcd0cae63da8943626d8a06b6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/logger.h b/include/logger.h index e3b7ee0a5..ca96ac242 100644 --- a/include/logger.h +++ b/include/logger.h @@ -26,7 +26,7 @@ * I/O (linux seems to, as does freebsd) this will default to * blocking behaviour. */ -class CoreExport FileWriter : public EventHandler +class CoreExport FileWriter { protected: /** The log file (fd is inside this somewhere, @@ -43,14 +43,6 @@ class CoreExport FileWriter : public EventHandler */ FileWriter(FILE* logfile); - /** Handle pending write events. - * This will flush any waiting data to disk. - * If any data remains after the fprintf call, - * another write event is scheduled to write - * the rest of the data when possible. - */ - virtual void HandleEvent(EventType et, int errornum = 0); - /** Write one or more preformatted log lines. * If the data cannot be written immediately, * this class will insert itself into the @@ -60,10 +52,6 @@ class CoreExport FileWriter : public EventHandler */ void WriteLogLine(const std::string &line); - /** Close the log file and cancel any events. - */ - virtual void Close(); - /** Close the log file and cancel any events. */ virtual ~FileWriter(); @@ -124,10 +112,6 @@ class CoreExport LogManager */ bool Logging; - /** LogStream for -nofork, logs to STDOUT when it's active. - */ - LogStream* noforkstream; - /** Map of active log types and what LogStreams will receive them. */ std::map > LogStreams; @@ -150,12 +134,6 @@ class CoreExport LogManager LogManager(); ~LogManager(); - /** Sets up the logstream for -nofork. Called by InspIRCd::OpenLog() and LogManager::OpenFileLogs(). - * First time called it creates the nofork stream and stores it in noforkstream. Each call thereafter just readds it to GlobalLogStreams - * and updates the loglevel. - */ - void SetupNoFork(); - /** Adds a FileWriter instance to LogManager, or increments the reference count of an existing instance. * Used for file-stream sharing for FileLogStreams. */