Beispiel #1
0
        /// <summary>
        /// Creates a new instance of the logging wrapper by walking the stack to
        /// find the calling class and configures the log based on this.
        /// </summary>
        public LogWrapper()
        {
            /*
             * Get the calling method, to determine the class name.
             * */
            StackFrame a             = new StackFrame(1);
            MethodBase callingMethod = a.GetMethod();
            Type       callingType   = callingMethod.DeclaringType;

            //log = LogManager.GetLogger(callingType.FullName);
            log = LoggingWrapper.GetLoggerMore(callingType.FullName);
        }