'lo I've reinserted two patches for fred - one fixing up some details in the CLI so it uses the logger specified instead of System.err/System.out, and the other adding support for java.util.logging. The former is trivial mod to CLISplitFileStatus.java and CLI.java and can be found at CHK at 2AAzXhJtzLhNapo0wi9560pfYWEMAwI,jykjUOVTi4F~UX6X~wnImw/cliLogging.zip
The support for java.util.logging is more complex, but has lots of benefits, including filtering messages by class / package as well as level, log rotation, log file size limiting, and other customizations. For general info on that package - http://java.sun.com/j2se/1.4.1/docs/api/java/util/logging/package-summary.html I've run both of these on my node for the last week and haven't had any problems. As toad requested, the java.util.logging patch is optional - by default, fred will use the standard logging (though as people see the benefits of java.util.logging, the default may get switched). To use the new logging system, I add the following to my config file: logLevel=DEBUG useJavaLogging=true logging.java.util.logging.FileHandler.limit=5242880 logging.java.util.logging.FileHandler.count=4 logging.level=MINOR logging.freenet.support.io.Bandwidth.level=ERROR That creates four files - freenet.log.0 through freenet.log.3 (since the logFile parameter has the value "freenet.log" and the FileHandler.count=4). Each file gets filled up with no more than 5Mb each, and freenet.log.0 is always the one being currently written to. In addition, this logs all errors of level MINOR or higher, except for the bandwidth class, which it only logs ERROR messages. To use the new logging system effectively, logLevel must be set to DEBUG. For more info on why, see the readme in the patch's zip file. One thing to note is that this requires a java 1.4 VM (kaffe supports java.util.logging). I've been told this isn't a problem, as fred will shortly be requiring 1.4 anyway (to get NIO support). The java.util.logging patch is up at CHK at qK4rxtzsdG3dybLHcuXe4DJiVcsOAwI,wJWmsZjMrJjaYdSSQ6eVBQ/newLoggingPatch.zip I usually bounce these through toad, since I'm anon and hence can't commit to CVS, but he's got tons of stuff to do at the moment and it'd be great to get these in there (the first patch is needed to get FraZaa going, and the second makes debugging 10 bagillion times easier). If someone with commit privs could toss this in there (looking at 'em first, to make sure I'm not some crazed NSA spy as the random slander contends), that'd be great. They're both in context diff format w/ a readme.txt If anyone has any questions either about the code or the java.util.logging, lemmie know either here or on IIP/irc [nick=jrand0m, pretty much always on #freenet and #freenet-opn] Gracias, -jrandom !+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+ CryptoMail provides free end-to-end message encryption. http://www.cryptomail.org/ Ensure your right to privacy. Traditional email messages are not secure. They are sent as clear-text and thus are readable by anyone with the motivation to acquire a copy. !+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+ _______________________________________________ devl mailing list devl at freenetproject.org http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl
