[.net] Logging methods

Started by
1 comment, last by liquiddark 19 years, 6 months ago
Has anyone done any work with semi-automatic logging in C#? I'm trying to figure out something better than the log4net paradigm, considering hooking up logging delegates for event chains, and I don't really want to have to use the AOP-style stuff I've seen described using ContextBoundObject. Are there any improvements in sight? Thanks,
No Excuses
Advertisement
What kind of detail are you looking for in your logging? Are you trying to be as expansive as tracking variable values, function calls, etc., or are you really just trying to grab enough data to debug errors such as a simple stack trace? By automatic do you mean not needing to code in calls to your logging functions but having them more event based?
oh hai
Preferably the method should involve no code intrinsic to the class, and should be capable of at least public function + parameter-level tracking. I've already suggested adding a logger to event delegate chains where possible, but this is, obviously, of limited effectiveness. It should also be fast, because it has to run in production code. I'm willing to scale back the automated part to the level of only requiring attributes if necessary, but I'd prefer to avoid even that code overhead if possible.
No Excuses

This topic is closed to new replies.

Advertisement