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