Hi
I'm wondering about where I should place logging code in my C# application.
Let's say I want to log the program arguments (like myapp.exe -arg1).
The arguments are passed from the entry-point class with main() before it reaches a simple factory class that parses the arguments (actually there is only one argument) and creates an object based on the argument.
Should the factory that parses the arguments (the bottom of the hierarchy) be responsible for logging the arguments or should I log the arguments in main (the top of the hierarchy).
I feel the factory class would be the right place, but I'm often in doubt about where the right place for logging code is, and would really appreciate some good best practices I can reuse.