import java.awt.event.*;\r
import jalview.io.*;\r
\r
+import org.apache.log4j.*;\r
\r
public class Jalview extends JApplet\r
{\r
frame.setVisible(false);\r
}\r
\r
+ private static void initLogger() {\r
+ Logger l = Logger.getLogger("org.apache.axis");\r
+ l.setLevel(Level.INFO);\r
+ ConsoleAppender ap = new ConsoleAppender(new SimpleLayout(),"System.err");\r
+ ap.setName("Axis");\r
+ l.addAppender(ap);\r
+ }\r
public static void main(String[] args) {\r
\r
Cache.loadProperties();\r
-\r
+ try {\r
+ initLogger();\r
+ } catch (Exception e) {\r
+ System.out.println("Failed to initialise the log4j system for axis\n"+e);\r
+ }\r
try{\r
UIManager.setLookAndFeel(\r
// "javax.swing.plaf.metal.MetalLookAndFeel"\r