/// <summary> /// Standard method to use on method exit. /// </summary> public static void MethodExit() { EnsureConfig(); if (Logger.Logger.IsEnabledFor(DnnLogger.LevelTrace)) { Logger.TraceFormat("Method [{0}] Returned", CallingFrame.GetMethod().Name); } }
/// <summary> /// Standard method to use on method entry. /// </summary> public static void MethodEntry() { EnsureConfig(); if (Logger.Logger.IsEnabledFor(DnnLogger.LevelTrace)) { Logger.TraceFormat("Entering Method [{0}]", CallingFrame.GetMethod().Name); } }
/// <summary> /// Standard method to use on method exit /// </summary> public static void MethodExit() { EnsureConfig(); var log = DnnLogger.GetClassLogger(CallingType); if (log.Logger.IsEnabledFor(DnnLogger.LevelTrace)) { SetupThreadContext(); log.TraceFormat("Method [{0}] Returned", CallingFrame.GetMethod().Name); } }
/// <summary> /// Standard method to use on method entry /// </summary> public static void MethodEntry() { EnsureConfig(); var log = AppLogger.GetClassLogger(CallingType); if (log.Logger.IsEnabledFor(AppLogger.LevelTrace)) { SetupThreadContext(); log.TraceFormat("Entering Method [{0}]", CallingFrame.GetMethod().Name); } }
/// <summary> /// Standard method to use on method exit. /// </summary> public static void MethodExit(object returnObject) { EnsureConfig(); if (Logger.Logger.IsEnabledFor(DnnLogger.LevelTrace)) { if (returnObject == null) { returnObject = "NULL"; } Logger.TraceFormat("Method [{0}] Returned [{1}]", CallingFrame.GetMethod().Name, returnObject); } }
/// <summary> /// Standard method to use on method exit /// </summary> public static void MethodExit(object returnObject) { EnsureConfig(); var log = DnnLogger.GetClassLogger(CallingType); if (log.Logger.IsEnabledFor(DnnLogger.LevelTrace)) { if (returnObject == null) { returnObject = "NULL"; } SetupThreadContext(); log.TraceFormat("Method [{0}] Returned [{1}]", CallingFrame.GetMethod().Name, returnObject); } }