summaryrefslogtreecommitdiff
path: root/include/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/logger.h')
-rw-r--r--include/logger.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/include/logger.h b/include/logger.h
index 0e1bab4a3..2a075431e 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -11,20 +11,10 @@
* ---------------------------------------------------
*/
-#ifndef __LOGMANAGER_H
-#define __LOGMANAGER_H
-
-/** This class implements a nonblocking writer.
- * Most people writing an ircd give little thought to their disk
- * i/o. On a congested system, disk writes can block for long
- * periods of time (e.g. if the system is busy and/or swapping
- * a lot). If we just use a blocking fprintf() call, this could
- * block for undesirable amounts of time (half of a second through
- * to whole seconds). We DO NOT want this, so we make our logfile
- * nonblocking and hook it into the SocketEngine.
- * NB: If the operating system does not support nonblocking file
- * I/O (linux seems to, as does freebsd) this will default to
- * blocking behaviour.
+#ifndef LOGGER_H
+#define LOGGER_H
+
+/** Simple wrapper providing periodic flushing to a disk-backed file.
*/
class CoreExport FileWriter
{