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); } }
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); }