コード例 #1
0
ファイル: Service1.cs プロジェクト: hdxhan/Log4Grid
 protected override void OnStart(string[] args)
 {
     try
     {
         Utils.Log.Info("Log4Grid Server Copyright @ www.ikende.com 2014 Version " + typeof(Log4GridService).Assembly.GetName().Version);
         Utils.Log.Info("Website:http://www.ikende.com");
         Utils.Log.Info("Email:[email protected]");
         mLogServer = new LogServer();
         mLogServer.Open();
         Utils.Log.InfoFormat("Log4Grid windows start at {0}", DateTime.Now);
     }
     catch (Exception e_)
     {
         Utils.Log.ErrorFormat("Log4Grid windows start error {0}", e_.Message);
     }
 }
コード例 #2
0
ファイル: Service1.cs プロジェクト: zmm623/Log4Grid
 protected override void OnStart(string[] args)
 {
     try
     {
         Utils.Log.Info("Log4Grid Server Copyright @ www.ikende.com 2014 Version " + typeof(Log4GridService).Assembly.GetName().Version);
         Utils.Log.Info("Website:http://www.ikende.com");
         Utils.Log.Info("Email:[email protected]");
         mLogServer = new LogServer();
         mLogServer.Open();
         Utils.Log.InfoFormat("Log4Grid windows start at {0}", DateTime.Now);
     }
     catch (Exception e_)
     {
         Utils.Log.ErrorFormat("Log4Grid windows start error {0}", e_.Message);
     }
 }