Exemplo n.º 1
0
 protected void fCreateFileLogging()
 {
     try
     {
         fFileLog = new fWriteFileLog("HostThread", Path.GetDirectoryName(Environment.CommandLine.Remove(Environment.CommandLine.Length - 1, 1).Remove(0, 1)) + @"\Log", 0);
     }
     catch (ServiceExceptions.EErrorCreateLogFileException e)
     {
         throw new Exception("Error Create Log FIle\n" + e.ErrorLogFileMessage);
     }
     catch (Exception e)
     {
         throw new Exception("Exception in fCreateEventLogging.\n" + e.Message);
     }
 }
Exemplo n.º 2
0
 public void fCreateLogging()
 {
     fEvtLog  = new fWriteEventLog("LogATMClient", "LogATMClientMainService", Environment.CommandLine.Remove(Environment.CommandLine.Length - 5, 5).Remove(0, 1) + "_resEvt.dll");
     fFileLog = new fWriteFileLog("MainService", Path.GetDirectoryName(Environment.CommandLine.Remove(Environment.CommandLine.Length - 1, 1).Remove(0, 1)) + @"\Log", 0);
 }