]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/filelogger.h
Code for loading <log method=file> tags from config, but this still needs to be fit...
[user/henk/code/inspircd.git] / include / filelogger.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
6  * See: http://www.inspircd.org/wiki/index.php/Credits
7  *
8  * This program is free but copyrighted software; see
9  *      the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef __LOG_H__
15 #define __LOG_H__
16
17 #include "logger.h"
18
19 /** Debug levels for use with InspIRCd::Log()
20  *  */
21 enum DebugLevel
22 {
23     DEBUG       =   10,
24     VERBOSE     =   20,
25     DEFAULT     =   30,
26     SPARSE      =   40,
27     NONE        =   50
28 };
29
30
31 /* Forward declaration -- required */
32 class InspIRCd;
33
34 class CoreExport FileLogStream : public LogStream
35 {
36  private:
37         FileWriter *f;
38  public:
39         FileLogStream(InspIRCd *Instance, int loglevel, FileWriter *fw);
40
41         virtual ~FileLogStream();
42
43         virtual void OnLog(int loglevel, const std::string &type, const std::string &msg);
44 };
45
46 #endif