OnelineLog - Logging for Production

Comments

I don't quite agree with the suggestion of stripping off debug messages before checking in the code. In fact there are cases where these may be helpful. What if the application has falws in logic as opposed to system errors. We then have a situation where the business users are crying for help in stead of the application :) Many logging framework allow configurable capabilities to turn off debug logging without having to make code changes.

On the other hand, I agree with the concept of database logging. As long as it is carefully designed [make it asynchronous and do it in bulk as you suggested] there should not be a performance issues. I know some people cry a lot about overhead :) but then they need to ask themselves "how much is too much"!

Sambeet, I agree with your viewpoint of logic flaws and it makes sense to have intermediate results in debug mode. My point is trivial messages get thrown in a lot during the early stages of coding and never get removed. I am not advocating removing debug messages completely but keep the relevant ones only once the code is tested.

Post a comment

Already a Vox member? Sign in