From: jprocter Date: Fri, 10 Jun 2005 09:42:32 +0000 (+0000) Subject: added castor logger configuration. X-Git-Tag: Release_2_0~72 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=29779ec313172ec2f5b4594f33ebee8fff264915;p=jalview.git added castor logger configuration. --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 07958b4..c11d051 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -77,18 +77,23 @@ public class Jalview extends JApplet { } private static void initLogger() { - Logger l = Logger.getLogger("org.apache.axis"); - + Logger laxis = Logger.getLogger("org.apache.axis"); + Logger lcastor = Logger.getLogger("org.exolab.castor"); if (Cache.getProperty("logs.Axis.Level") == null) { Cache.setProperty("logs.Axis.Level", Level.INFO.toString()); } + if (Cache.getProperty("logs.Castor.Level") == null) { + Cache.setProperty("logs.Castor.Level", Level.INFO.toString()); + } - l.setLevel(Level.toLevel(Cache.getProperty("logs.Axis.Level"))); + laxis.setLevel(Level.toLevel(Cache.getProperty("logs.Axis.Level"))); + lcastor.setLevel(Level.toLevel(Cache.getProperty("logs.Castor.Level"))); ConsoleAppender ap = new ConsoleAppender(new SimpleLayout(), "System.err"); - ap.setName("Axis"); - l.addAppender(ap); + ap.setName("JalviewLogger"); + laxis.addAppender(ap); + lcastor.addAppender(ap); } public static void main(String[] args) {