directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r290072 - /directory/sandbox/trunk/proxy/src/java/main/org/apache/ldap/proxy/gui/MainFrame.java
Date Mon, 19 Sep 2005 07:01:54 GMT
Author: elecharny
Date: Mon Sep 19 00:01:50 2005
New Revision: 290072

URL: http://svn.apache.org/viewcvs?rev=290072&view=rev
Log:
Added logging capabilities

Modified:
    directory/sandbox/trunk/proxy/src/java/main/org/apache/ldap/proxy/gui/MainFrame.java

Modified: directory/sandbox/trunk/proxy/src/java/main/org/apache/ldap/proxy/gui/MainFrame.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/proxy/src/java/main/org/apache/ldap/proxy/gui/MainFrame.java?rev=290072&r1=290071&r2=290072&view=diff
==============================================================================
--- directory/sandbox/trunk/proxy/src/java/main/org/apache/ldap/proxy/gui/MainFrame.java (original)
+++ directory/sandbox/trunk/proxy/src/java/main/org/apache/ldap/proxy/gui/MainFrame.java Mon
Sep 19 00:01:50 2005
@@ -19,6 +19,9 @@
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.ldap.proxy.impl.LdapMessageWithPDU;
 import org.apache.ldap.proxy.impl.LdapProxy;
+import org.apache.log4j.PropertyConfigurator;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import com.thoughtworks.xstream.XStream;
 
@@ -73,6 +76,9 @@
  */
 public class MainFrame extends JFrame implements TreeSelectionListener, TreeExpansionListener
 {
+    /** The logger */
+    private static final Logger log             = LoggerFactory.getLogger( MainFrame.class
);
+
     // ~ Static fields/initializers
     // -----------------------------------------------------------------
     // Shut down the Serialization warning ...
@@ -489,6 +495,7 @@
      */
     public static void main( String[] args ) throws Exception
     {
+        PropertyConfigurator.configure( System.getProperty( "log4j.configuration" ) );
         MainFrame mf = new MainFrame();
         mf.args = args;
         mf.run();



Mime
View raw message