i created a global action filter to measure action execution time based on this answer Measure Time Invoking ASP.NET MVC Controller Actions
i want to log the results using log4net. i want to know if creating a logguer for each invocation has a performance impact. i have a static instance of ILog inside each of my controllers defined as below
private static ILog logger = log4net.LogManager.GetLogger(typeof(CompteController));
can i access it directly inside the action filter?
or is there a better way to do it?