]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/filelogger.h
Don't try to tidy m_autoop entries (fixes extra !*@*)
[user/henk/code/inspircd.git] / include / filelogger.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/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     RAWIO       =   5,
24     DEBUG       =   10,
25     VERBOSE     =   20,
26     DEFAULT     =   30,
27     SPARSE      =   40,
28     NONE        =   50
29 };
30
31
32 /* Forward declaration -- required */
33 class InspIRCd;
34
35 /** A logging class which logs to a streamed file.
36  */
37 class CoreExport FileLogStream : public LogStream
38 {
39  private:
40         FileWriter *f;
41  public:
42         FileLogStream(int loglevel, FileWriter *fw);
43
44         virtual ~FileLogStream();
45
46         virtual void OnLog(int loglevel, const std::string &type, const std::string &msg);
47 };
48
49 #endif
50