added castor logger configuration.
authorjprocter <Jim Procter>
Fri, 10 Jun 2005 09:42:32 +0000 (09:42 +0000)
committerjprocter <Jim Procter>
Fri, 10 Jun 2005 09:42:32 +0000 (09:42 +0000)
src/jalview/bin/Jalview.java

index 07958b4..c11d051 100755 (executable)
@@ -77,18 +77,23 @@ public class Jalview extends JApplet {
     }\r
 \r
     private static void initLogger() {\r
-        Logger l = Logger.getLogger("org.apache.axis");\r
-\r
+        Logger laxis = Logger.getLogger("org.apache.axis");\r
+        Logger lcastor = Logger.getLogger("org.exolab.castor");\r
         if (Cache.getProperty("logs.Axis.Level") == null) {\r
             Cache.setProperty("logs.Axis.Level", Level.INFO.toString());\r
         }\r
+        if (Cache.getProperty("logs.Castor.Level") == null) {\r
+            Cache.setProperty("logs.Castor.Level", Level.INFO.toString());\r
+        }\r
 \r
-        l.setLevel(Level.toLevel(Cache.getProperty("logs.Axis.Level")));\r
+        laxis.setLevel(Level.toLevel(Cache.getProperty("logs.Axis.Level")));\r
+        lcastor.setLevel(Level.toLevel(Cache.getProperty("logs.Castor.Level")));\r
 \r
         ConsoleAppender ap = new ConsoleAppender(new SimpleLayout(),\r
                 "System.err");\r
-        ap.setName("Axis");\r
-        l.addAppender(ap);\r
+        ap.setName("JalviewLogger");\r
+        laxis.addAppender(ap);\r
+        lcastor.addAppender(ap);\r
     }\r
 \r
     public static void main(String[] args) {\r