These should be a single Logger.normal() call. Even if you have to include
\n's in them, it's better for them to be atomic, especially if you're running
with the node's logger later on.
It's quite possible to configure freenet's logger to log to stderr etc. The
only problem is providing the classes when running in standalone mode. We
could perhaps provide a jar with the parts of freenet/support/ that don't
depend on the node core...
On Thursday 22 November 2007 20:24, alexlehm at freenetproject.org wrote:
> Author: alexlehm
> Date: 2007-11-22 20:24:44 +0000 (Thu, 22 Nov 2007)
> New Revision: 15929
>
> Added:
> trunk/apps/Freemail/src/freemail/utils/Logger.java
> Modified:
> trunk/apps/Freemail/src/freemail/InboundContact.java
> trunk/apps/Freemail/src/freemail/OutboundContact.java
> trunk/apps/Freemail/src/freemail/RTSFetcher.java
> Log:
> Logger class for Freemail, this tries to mimic the Logger class form
Freenet, maybe we can later exchange the class by simple changing the import.
The logging has to be changed on a few other classes as well, I'll commit
that later.
> A regular user will need normal and error messages, anything minor is status
logs that do not show progress (e.g. checking message keys).
>
> Modified: trunk/apps/Freemail/src/freemail/InboundContact.java
> ===================================================================
> if(slot.length()!=52) {
> - System.out.println("ignoring malformed slot
> "+slot+" (probably due to
previous bug)");
> - System.out.println("please the fix the entry in
> "+this.ibct_dir);
> + Logger.normal(this,"ignoring malformed slot
> "+slot+" (probably due to
previous bug)");
> + Logger.normal(this,"please the fix the entry in
> "+this.ibct_dir);
> break;
> }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/freemail/attachments/20071203/b237097c/attachment.pgp>