blob: 600f29242dbba06344b6c635c330cd23074ce6e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd: (C) 2002-2008 InspIRCd Development Team
* See: http://www.inspircd.org/wiki/index.php/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
/* $Core: libIRCDlogger */
#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.
*/
|