diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-02 23:38:20 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-02 23:38:20 +0000 |
commit | 5c7ee6799985bf33850ace506d082ce1e0d0af33 (patch) | |
tree | 1b59c4d5305d8ebdf7ba65b26493e3caedca220e /src | |
parent | 366a6768437ef753dc31f3ce73e8b2e20a66d243 (diff) |
Add some notes on proposed logging stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8798 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/logger.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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. + */ |