public IEnumerable <string> Get() { // nlog.Debug("Callng Get() method"); var ex1 = new Exception("Failure"); //Will create a StackifyError _Logger.LogError(ex1, "Test error"); //Will not create a StackifyError _Logger.LogError("From helper method"); try { throw new InvalidOperationException("Bring the boom"); } catch (Exception ex) { nlog.Error(ex, "Uh oh"); } SomeOtherClass soc = new SomeOtherClass(); soc.DoBadWebRequest(); return(new string[] { "value1", "value2" }); }
public IEnumerable <string> Get() { // nlog.Debug("Callng Get() method"); _Logger.LogError("From helper method"); try { throw new InvalidOperationException("Bring the boom"); } catch (Exception ex) { nlog.Error(ex, "Uh oh"); } SomeOtherClass soc = new SomeOtherClass(); soc.DoBadWebRequest(); return(new string[] { "value1", "value2" }); }