Liste des Groupes | Revenir à col misc |
On Sun, 17 Nov 2024 17:17:37 GMT, Charlie Gibbs wrote:The other day a daemon program spewed 2 gigabytes of log entries, all almost identical (the filename changed). The program was tracker-extract.
Horses for courses. Never underestimate the value of a few printf()sI'm a dinosaur so my preferred technique is either printf or log files.
sprinkled here and there (or log file writes if you're really headless).
I'm still a fan of makefiles.
For production code I've sometimes created a sequence of log statements
that can be turned on with a flag that are a narrative of what's going on.
My goal is a support person can read the file and see where the problem
occurs. Often it is a configuration issue they can fix.
The nice part is the technique can be used with any language and is
effective where a debugger isn't available.
Les messages affichés proviennent d'usenet.