logging - Automatic Log when entering and exiting functions (Log4Net) -
I am using log4net in my application (.net 4 framework) to configure it in any way There is no way that each function will be logged (without the logging call manually manually at the beginning of the function). Thanks
It looks as if you want to check initiative-oriented-programming See for information on aspect.net.
General procedure In order to provide code at the beginning / end of a function, write one aspect, and specify what to do in this situation (in your case, log something) aspects during the construction process Is called in your code, but your source code remains untouched by all additional logging.
Comments
Post a Comment