From 5c7ee6799985bf33850ace506d082ce1e0d0af33 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 2 Feb 2008 23:38:20 +0000 Subject: Add some notes on proposed logging stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8798 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/logger.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/logger.cpp b/src/logger.cpp index b66b34b8e..600f29242 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -15,3 +15,16 @@ #include "inspircd.h" +/* + * Suggested implementation... + * class LogManager + * LogStream *AddLogType(const std::string &type) + * LogStream *DelLogType(const std::string &type) + * Log(LogStream *, enum loglevel, const std::string &msg) + * + * class LogStream + * std::string type + * (void)(*)Callback(LogStream *, enum loglevel, const std::string &msg) <---- callback for modules to implement their own logstreams, core will just handle to file/channel(?) + * + * Feel free to elaborate on this further. + */ -- cgit v1.2.3