I am currently developing an MVC application in ASP.NET, and I am trying to separate the problems so that I end up with a cleaner and more customizable code.
So, as a starting point, I was thinking about the logging aspect. My idea is to register (initially) a call and return of each method in each controller. I would have this logic in a separate class devoted to logging, so I do not use my code with logging operators everywhere.
I also need access to the Http request so that I can get client information.
Is there an integrated way to do this? Can ASP.NET MVC be used with format files just like AspectJ in Java?
Also, is it possible to later configure the log settings that satisfy certain conditions? (e.g. signature, return value, exception throw, etc.)
Thank you very much in advance!
Matias cicero
source share