Re: When to log? (best practices and localization)



On 31 Aug, 14:51, Lew <l...@xxxxxxxxxxxxx> wrote:
I'm rather vague on what I really want to ask here, I simply don't
know when to use a logging tool and when System prints are "enough".

Always use a logging tool. System prints are never "enough"; they are always
too much. Always use a logging tool, Always.

I have set up my IDE templates for Java classes to include the import of the
logging library and declaration of a "logger" instance variable.

Sounds like very good advice IMO. I would recommend using log4j to do
the logging.

-Andrew Marlow

.