Pascal <pascal666 at users.sourceforge.net> writes:

> I modified Fred's logger some time ago to redirect StdErr and StdOut
> to the logfile if they did not exist. If this is not happening on
> your JVM your patch will certainly act as a workaround, but the
> preferred solution would be to submit a bug report to the developers
> of your JVM. If System.out.print is called when StdOut does not
> exist (such as when running Fred as a service)
> System.out.checkError() should return true.

You are mistaken. The way Unix services work stdout and friends will
work perfectly fine and accept anything thrown at them. It just won't
get anywhere.

Logging some things, and printing random others to stdout is certainly
wrong.

Actually I think the right way is to log everything, as Fred is closer
to a service than a (console) application. My patch is a small step in
the right direction.

-- 
Robbe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.ng
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20020902/c7ff91d0/attachment.pgp>

Reply via email to