views:

24

answers:

0

i have a application written in c#.for the purpose of logging we are using nlog. while performing the code review it was found that people were not logging the required debug and info statements in each method call.

What i would like to do is write a small program that will iterate through the assembely and for a particular namespace find a list of methods and check if each of the methods have implemented the logging.

The solution that i think should work will use reflection to get list of method calls but what i cannot figure out is how do i check if the nlog logger is being used . I would also be okay with any other approach. Suggestions are welcome :)