forked from meebey/SmartIrc4net
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLogger.cs
74 lines (71 loc) · 3 KB
/
Logger.cs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* $Id$
* $URL$
* $Rev$
* $Author$
* $Date$
*
* SmartIrc4net - the IRC library for .NET/C# <http://smartirc4net.sf.net>
*
* Copyright (c) 2003-2005 Mirco Bauer <[email protected]> <http://www.meebey.net>
*
* Full LGPL License: <http://www.gnu.org/licenses/lgpl.txt>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#if LOG4NET
using log4net;
namespace Meebey.SmartIrc4net
{
/// <summary>
///
/// </summary>
/// <threadsafety static="true" instance="true" />
internal static class Logger
{
static public ILog Main { get; private set; }
static public ILog Connection { get; private set; }
static public ILog Socket { get; private set; }
static public ILog Queue { get; private set; }
static public ILog IrcMessages { get; private set; }
static public ILog MessageTypes { get; private set; }
static public ILog MessageParser { get; private set; }
static public ILog ActionHandler { get; private set; }
static public ILog TimeHandler { get; private set; }
static public ILog MessageHandler { get; private set; }
static public ILog ChannelSyncing { get; private set; }
static public ILog UserSyncing { get; private set; }
static public ILog Modules { get; private set; }
static public ILog Dcc { get; private set; }
static Logger()
{
Main = log4net.LogManager.GetLogger("MAIN");
Socket = log4net.LogManager.GetLogger("SOCKET");
Queue = log4net.LogManager.GetLogger("QUEUE");
Connection = log4net.LogManager.GetLogger("CONNECTION");
IrcMessages = log4net.LogManager.GetLogger("IRCMESSAGE");
MessageParser = log4net.LogManager.GetLogger("MESSAGEPARSER");
MessageTypes = log4net.LogManager.GetLogger("MESSAGETYPES");
ActionHandler = log4net.LogManager.GetLogger("ACTIONHANDLER");
TimeHandler = log4net.LogManager.GetLogger("TIMEHANDLER");
MessageHandler = log4net.LogManager.GetLogger("MESSAGEHANDLER");
ChannelSyncing = log4net.LogManager.GetLogger("CHANNELSYNCING");
UserSyncing = log4net.LogManager.GetLogger("USERSYNCING");
Modules = log4net.LogManager.GetLogger("MODULES");
Dcc = log4net.LogManager.GetLogger("DCC");
}
}
}
#endif