/[AnywhereTS-MSSQL]/trunk/AnywhereTS.Logging/Logging.cs
ViewVC logotype

Annotation of /trunk/AnywhereTS.Logging/Logging.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 36 - (hide annotations) (download)
Thu Jul 12 11:35:07 2012 UTC (8 years, 7 months ago) by william
File size: 525 byte(s)
+ add logging library (to be shared across application)

1 william 36 using System;
2     using System.Collections.Generic;
3     using System.Text;
4     using log4net.Config;
5     using log4net;
6     using System.IO;
7    
8     namespace AnywhereTS
9     {
10     public static class Logging
11     {
12     static Logging() { Logging.Initialize(); }
13     private static void Initialize() { XmlConfigurator.Configure(new FileInfo("AnywhereTS.Logging.dll.config")); }
14    
15     #region Log access
16     public static readonly ILog ATSAdminLog = LogManager.GetLogger("AnywhereTS.ATSAmdin");
17     #endregion
18     }
19     }

  ViewVC Help
Powered by ViewVC 1.1.22