public static void LogInformation(string message) { if (UrlTrackerSettings.EnableLogging) { LogManager.GetLogger(typeof(LoggingHelper)).Debug(message); LogHelper.Debug(typeof(LoggingHelper), () => { return(message); }); UrlTrackerLogging.Log(message); } }
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) { LogManager.GetLogger(typeof(LoggingHelper)).Error(ex.Message, ex); LogHelper.Error(typeof(LoggingHelper), ex.Message, ex); UrlTrackerLogging.Log(ex); }
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); }