in reply to Balancing Logging and Code Readability
Update:#!/usr/bin/perl -w use strict; use constant DEBUG => 1; print "this is debug" if DEBUG;
When I release an application to the users, the objective of the logged info is not for me to "debug" the problem meaning know exactly why it happened at a fine level of detail. The objective is for me to have enough information so that I can re-create your problem. Once I can re-create the problem on my machine, then I will figure out "why", maybe by turning on some flags like above in my example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Balancing Logging and Code Readability
by saberworks (Curate) on Sep 15, 2009 at 15:36 UTC | |
by ack (Deacon) on Sep 17, 2009 at 02:39 UTC | |
|
Re^2: Balancing Logging and Code Readability
by ack (Deacon) on Sep 17, 2009 at 02:34 UTC | |
|
Re^2: Balancing Logging and Code Readability
by andreas1234567 (Vicar) on Sep 21, 2009 at 10:31 UTC | |
by Marshall (Canon) on Sep 23, 2009 at 08:58 UTC |