コード例 #1
0
ファイル: DnnLog.cs プロジェクト: ws-phil/Dnn.Platform
        /// <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);
            }
        }
コード例 #2
0
ファイル: DnnLog.cs プロジェクト: ws-phil/Dnn.Platform
        /// <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);
            }
        }
コード例 #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);
            }
        }
コード例 #4
0
ファイル: AppLog.cs プロジェクト: nm-1216/os.brain
        /// <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);
            }
        }
コード例 #5
0
ファイル: DnnLog.cs プロジェクト: ws-phil/Dnn.Platform
        /// <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);
            }
        }
コード例 #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);
            }
        }