Well, we will want l10n at some point! There's certainly an argument for
making a freenet-common.jar or something to share common code around the
freenet project. We use other stuff from the freenet jar, and it's a bit
inelegant and wasteful fetching the whole jar at compilation. There's a
chance a might get to look at doing this, although fixing Freemail bugs has
to be higher up the priority list.
Dave
On Wednesday 05 December 2007 20:50:57 Alexander Lehmann wrote:
> I think the logger depends on l10n in some way, so I'm not sure if this
makes sense. You can use the complete freenet.jar to run Freemail, this would
only require a bat/sh file to start it.
>
> > Message: 1
> > Date: Mon, 3 Dec 2007 15:39:44 +0000
> > From: Matthew Toseland <toad at amphibian.dyndns.org>
> > Subject: Re: [Freemail] r15929 - in trunk/apps/Freemail/src/freemail:
> > . utils
> > To: freemail at freenetproject.org
> > Message-ID: <200712031539.49032.toad at amphibian.dyndns.org>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > 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;
> > > }
> >
>
>
> _______________________________________________
> Freemail mailing list
> Freemail at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/freemail
>