Example #1
0
 public static void LogInformation(string message)
 {
     if (UrlTrackerSettings.EnableLogging)
     {
         LogManager.GetLogger(typeof(LoggingHelper)).Debug(message);
         LogHelper.Debug(typeof(LoggingHelper), () => { return(message); });
         UrlTrackerLogging.Log(message);
     }
 }
Example #2
0
 public static void LogInformation(string message)
 {
     if (UrlTrackerSettings.EnableLogging)
     {
         LogToLog4net(message: message);
         UmbracoLog.Add(LogTypes.Debug, -1, message);
         UrlTrackerLogging.Log(message);
     }
 }
Example #3
0
 public static void LogException(this Exception ex)
 {
     LogManager.GetLogger(typeof(LoggingHelper)).Error(ex.Message, ex);
     LogHelper.Error(typeof(LoggingHelper), ex.Message, ex);
     UrlTrackerLogging.Log(ex);
 }
Example #4
0
 public static void LogException(this Exception ex, int nodeId)
 {
     LogToLog4net(exception: ex);
     UmbracoLog.Add(LogTypes.Error, nodeId, string.Concat("Exception occurred in UrlTracker: ", ex.Message));
     UrlTrackerLogging.Log(ex);
 }