|
|||
|
|||
|
00001 /* +------------------------------------+ 00002 * | Inspire Internet Relay Chat Daemon | 00003 * +------------------------------------+ 00004 * 00005 * InspIRCd: (C) 2002-2008 InspIRCd Development Team 00006 * See: http://www.inspircd.org/wiki/index.php/Credits 00007 * 00008 * This program is free but copyrighted software; see 00009 * the file COPYING for details. 00010 * 00011 * --------------------------------------------------- 00012 */ 00013 00014 #ifndef __LOG_H__ 00015 #define __LOG_H__ 00016 00017 #include "logger.h" 00018 00021 enum DebugLevel 00022 { 00023 DEBUG = 10, 00024 VERBOSE = 20, 00025 DEFAULT = 30, 00026 SPARSE = 40, 00027 NONE = 50 00028 }; 00029 00030 00031 /* Forward declaration -- required */ 00032 class InspIRCd; 00033 00036 class CoreExport FileLogStream : public LogStream 00037 { 00038 private: 00039 FileWriter *f; 00040 public: 00041 FileLogStream(InspIRCd *Instance, int loglevel, FileWriter *fw); 00042 00043 virtual ~FileLogStream(); 00044 00045 virtual void OnLog(int loglevel, const std::string &type, const std::string &msg); 00046 }; 00047 00048 #endif 00049