public void Info(object logData, LogMedium logMedium = LogMedium.log4net) { Log(Level.Info, Identity, IdentityType, "", null, logMedium, logData); }
public void Info(string identity, IdentityType identityType, string Message, LogMedium logMedium = LogMedium.log4net) { Log(Level.Info, identity, identityType, Message, null, logMedium); }
public void Debug(string Message, LogMedium logMedium = LogMedium.log4net) { Log(Level.Debug, Identity, IdentityType, Message, null, logMedium); }
public void Debug(object logData, LogMedium logMedium = LogMedium.log4net) { Log(Level.Debug, Identity, IdentityType, "", null, logMedium, logData); }
public void Verbose(string identity, IdentityType identityType, string Message, LogMedium logMedium = LogMedium.log4net) { Log(Level.Verbose, identity, identityType, Message, null, logMedium); }
private void Log(Level level, string identity, IdentityType identityType, string message, Exception exception, LogMedium logMedium = LogMedium.log4net, object logData = null) { PushToLog4Net(level, identity, identityType, message, exception, logData); }
public void Verbose(object logData, LogMedium logMedium = LogMedium.log4net) { Log(Level.Verbose, Identity, IdentityType, "", null, logMedium, logData); }
//#region **PING ** //public void Ping(double expectedInterval, PingStatus status = PingStatus.OK, int defaultTimeoutInMS = 300) //{ // try // { // ThreadPool.QueueUserWorkItem(new WaitCallback(SendPingRequest), JsonConvert.SerializeObject(new { ExpectedInterval = expectedInterval, Status = status.ToString(), DefaultTimeoutInMS = defaultTimeoutInMS })); // } // catch (Exception excp) // { // Fatal("Problem calling ASync request to PING. Error: " + excp.Message, excp); // } //} //public void Ping(string serviceName, double expectedInterval, PingStatus status = PingStatus.OK, int defaultTimeoutInMS = 300) //{ // try // { // ThreadPool.QueueUserWorkItem(new WaitCallback(SendPingRequestWithServiceName), JsonConvert.SerializeObject(new { ServiceName = serviceName, ExpectedInterval = expectedInterval, Status = status.ToString(), DefaultTimeoutInMS = defaultTimeoutInMS })); // } // catch (Exception excp) // { // Fatal("Problem calling ASync request to PING. Error: " + excp.Message, excp); // } //} //#endregion #region **TRACE** public void Trace(string Message, LogMedium logMedium = LogMedium.log4net) { Log(Level.Trace, Identity, IdentityType, Message, null, logMedium); }
public void Fatal(string identity, IdentityType identityType, string Message, Exception exception, LogMedium logMedium = LogMedium.log4net) { Log(Level.Fatal, identity, identityType, Message, exception, logMedium); }
public void Fatal(object logdata, Exception exception, LogMedium logMedium = LogMedium.log4net) { Log(Level.Fatal, Identity, IdentityType, "", exception, logMedium, logdata); }
public void Error(string Message, Exception exception, LogMedium logMedium = LogMedium.log4net) { Log(Level.Error, Identity, IdentityType, Message, exception, logMedium); }