Jump to content
  • Advertisement
Sign in to follow this  
liquiddark

[.net] Logging methods

This topic is 5399 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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,

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!