Add log4net dll reference to your MVC project ------------------------------------------------------------------------------ Create following model inside your models folder ------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; namespace MVCWebApp.Models { public class LoggingFilterAttribute : ActionFilterAttribute { #region Logging /// <summary> /// Access to the log4Net logging object /// </summary> protected static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private const string StopwatchKey = "DebugLoggingStopWatch"; #endregion public override void OnActionExecuting(ActionExecutingContext filterContext)
Email: abinfotechnology@gmail.com | Phone: +91-9686769808
AB InfoTech is the best training institute in marathahalli bangalore,MVC training in bangalore,Angular, Web API ,C#, Dot Net,.net training in bangalore, Angular 7, real time, project, Angular Js, placements, job, top, software, Power BI, Angular 8, Anuglar 9, learn angular, tutorials, Angular 7 Tutorial - Learn Angular 7 by Example ,learn Angular step by step tutorial