public void Error(Exception ex) { ILogger logger = ServiceRegistration.Get <ILogger>(false); if (logger != null) { logger.Error(ex); } }
public void Error(string format, Exception ex, params object[] args) { ILogger logger = ServiceRegistration.Get <ILogger>(false); if (logger != null) { logger.Error(format, ex, args); } }