----- Original Message -----
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 10:49 PM
Subject: Re: [logging] Default log


>
>
> On Thu, 14 Feb 2002 [EMAIL PROTECTED] wrote:
>
> > Date: Thu, 14 Feb 2002 20:00:00 -0800 (PST)
> > From: [EMAIL PROTECTED]
> > Reply-To: Jakarta Commons Developers List
<[EMAIL PROTECTED]>
> > To: Jakarta Commons Developers List <[EMAIL PROTECTED]>
> > Subject: [logging] Default log
> >
> > The current default is NoOp. I would like to change this to SimpleLog.
If
> > no other logger is found we don't want to lose messages - I think it
> > is a huge mistake to default to 'don't log anything if a logger can't be
> > found'.
> >
>
> My only problem with this is applications that use System.out for their
> own output (such as a "filter" in the traditional Unix sense of programs
> that read standard input and write to standard output).
>
> Maybe SimpleLog should go to standard error instead?

Probably not a good idea, because at certain log levels we would be sending
DEBUG information to standard error, which would really junk up logs that
specifically divert standard error to another file.  Your true error
messages would get buried in a mish-mash of debug statements.

> > Also, for SimpleLog - I would like to change the default level to
> > info ( or warn ). Error is far too high, it's better to get more
> > info by default than to get none ( in a corectly configured
> > situation you'll get what's configured, but if something is
> > wrong you should get as much as possible ).
> >
>
> My preference would be "warn" if we default to System.out, or "info" if we
> default to someplace else.

IMO "info" is too high.  Some applications generate a lot of "info" output.
However, I'm not too concerned about it; I doubt many users will use
SimpleLog for long.

> >
> > Costin
> >
>
> Craig
>

An alternative to defaulting to SimpleLog would be to take the Log4J
approach; immediately print out a single error message if a logger
implementation has not been selected, then default to NoOp.  This would be
my preference, I think.

- Morgan




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to