示例#1
0
 public static void LogInformation(string message)
 {
     if (UrlTrackerSettings.EnableLogging)
     {
         LogToLog4net(message: message);
         UmbracoLog.Add(LogTypes.Debug, -1, message);
         UrlTrackerLogging.Log(message);
     }
 }
示例#2
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);
 }