Beispiel #1
0
        /// <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);
            }
        }
Beispiel #2
0
        /// <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);
            }
        }
Beispiel #3
0
        /// <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);
            }
        }
Beispiel #4
0
        /// <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);
            }
        }
Beispiel #5
0
        /// <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);
            }
        }
Beispiel #6
0
        /// <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);
            }
        }