From 29779ec313172ec2f5b4594f33ebee8fff264915 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 10 Jun 2005 09:42:32 +0000 Subject: [PATCH] added castor logger configuration. --- src/jalview/bin/Jalview.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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) { -- 1.7.10.2