in reply to Determining debug levels
I've built logging into several enterprise systems to support diagnosis in the field, and have always used simple numeric levels. It's a lot more convenient to write log("diagnostic stuff") if $DEBUG > 1; (or the equivalent from Log::Dispatch::Config) than it is to wrestle with symbolic names for levels.
Stay simple, and don't get too hung up with a rigid numbering schemes. I've gotten a lot of mileage out of the following:
95% of the time, turning on level 1 has been sufficient to gather enough info to reproduce the problem locally, if not make it glaringly evident just what had gone off the rails and why. It's amazing how hard it is to believe that users will try certain sequences of actions, or that certain sequence are even possible, until you see hard evidence in the logs.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Determining debug levels
by clemburg (Curate) on Feb 28, 2002 at 10:38 UTC | |
by dws (Chancellor) on Feb 28, 2002 at 10:49 UTC | |
by clemburg (Curate) on Feb 28, 2002 at 10:56 UTC | |
by drewbie (Chaplain) on Feb 28, 2002 at 17:28 UTC | |
Re: Re: Determining debug levels
by drewbie (Chaplain) on Feb 28, 2002 at 17:24 UTC |