public TracingTextAppender(string path, bool enabled) { Enabled = enabled; if (!string.IsNullOrEmpty(path)) { _path = path.TrimEnd('\\') + "\\" + ServiceEnvironment.ServiceName; } else { path = AppDomain.CurrentDomain.BaseDirectory; _path = path.TrimEnd('\\') + "\\LOG"; } try { if (!Directory.Exists(_path)) { Directory.CreateDirectory(_path); } } catch (Exception ex) { SystemLog.Error(LogEventID.ServiceFailed, ex, "TracingTextAppeder Failed: Appender Disabled." + _path); Enabled = false; } _protector = new RetryProtector("TracingTextAppender", new int[] { 0, 10, 30, 300 }); }
public TracingTextAppender(string path, bool enabled) { Enabled = enabled; if (!string.IsNullOrEmpty(path)) { _path = path.TrimEnd('\\') + "\\" + ServiceEnviornment.ServiceName; } else { path = AppDomain.CurrentDomain.BaseDirectory; _path = path.TrimEnd('\\') + "\\LOG"; } try { if (!Directory.Exists(_path)) { Directory.CreateDirectory(_path); } } catch (Exception ex) { SystemLog.Error(LogEventID.ServiceFailed, ex, "TracingTextAppeder Failed: Appender Disabled." + _path); Enabled = false; } _protector = new RetryProtector("TracingTextAppender", new int[] { 0, 10, 30, 300 }); }
public TracingConsoleAppender(bool enabled) { Enabled = enabled; _protector = new RetryProtector("TracingConsoleAppender", new int[] {0, 10, 30, 300}); }
public TracingConsoleAppender(bool enabled) { Enabled = enabled; _protector = new RetryProtector("TracingConsoleAppender", new int[] { 0, 10, 30, 300 }); }
public TracingDatabaseAppender(string connStr, bool enabled) { Enabled = enabled; _db = DatabaseManager.GetDatabase(IICDbType.SqlServer2005, connStr); _protector = new RetryProtector("TracingDatabaseAppender", new int[] { 0, 10, 30, 300 }); }