summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-06-25 02:11:43 (EDT)
committerEike Stepper2006-06-25 02:11:43 (EDT)
commitd16270d14cfcec0fc585560722a921a42cad25a3 (patch)
treec2b175e04cbc20a5cd3eb67a53770aea4280b349
parentd43efbaa6ba332845de8554dc3121b251f82427c (diff)
downloadcdo-d16270d14cfcec0fc585560722a921a42cad25a3.zip
cdo-d16270d14cfcec0fc585560722a921a42cad25a3.tar.gz
cdo-d16270d14cfcec0fc585560722a921a42cad25a3.tar.bz2
fixed lifecycle
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Net4jUtilPlugin.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Net4jUtilPlugin.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Net4jUtilPlugin.java
index edff092..4be43ba 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Net4jUtilPlugin.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/Net4jUtilPlugin.java
@@ -15,10 +15,9 @@ import org.eclipse.net4j.util.eclipse.AbstractPlugin;
import org.eclipse.core.runtime.FileLocator;
+import org.apache.log4j.Logger;
import org.apache.log4j.xml.DOMConfigurator;
-import org.osgi.framework.BundleContext;
-
import java.net.URL;
@@ -35,9 +34,8 @@ public class Net4jUtilPlugin extends AbstractPlugin
if (plugin == null) plugin = this;
}
- public void start(BundleContext context) throws Exception
+ public void doStart() throws Exception
{
- super.start(context);
initializeLogger();
}
@@ -56,8 +54,6 @@ public class Net4jUtilPlugin extends AbstractPlugin
private void initializeLogger()
{
- // IOHelper.log("Initializing Log4j...");
-
try
{
URL pluginURL = getBundle().getEntry("/config/log4j.xml");
@@ -69,5 +65,11 @@ public class Net4jUtilPlugin extends AbstractPlugin
{
IOHelper.log("Warning: Initialization of Log4j failed", ex);
}
+
+ Logger logger = Logger.getLogger(Net4jUtilPlugin.class);
+ if (logger.isDebugEnabled())
+ {
+ logger.debug("Log4j initialized");
+ }
}
}