Author: adietish
Date: 2010-10-15 08:12:36 -0400 (Fri, 15 Oct 2010)
New Revision: 25863
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/log/PluginLogger.java
Log:
[JBIDE-7320] removed usage specific parts
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/log/PluginLogger.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/log/PluginLogger.java 2010-10-15
12:06:04 UTC (rev 25862)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/log/PluginLogger.java 2010-10-15
12:12:36 UTC (rev 25863)
@@ -13,19 +13,15 @@
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
-import org.jboss.tools.usage.util.LoggingUtils;
/**
* @author Andre Dietisheim
*/
public class PluginLogger implements ILoggingAdapter {
- private final boolean tracingEnabled;
-
private Plugin plugin;
public PluginLogger(Plugin plugin) {
- this.tracingEnabled = LoggingUtils.isPluginTracingEnabled(plugin);
this.plugin = plugin;
}
@@ -38,7 +34,7 @@
}
private void log(int severity, String message) {
- if (!tracingEnabled) {
+ if (!isTracingEnabled()) {
return;
}
@@ -47,4 +43,9 @@
plugin.getLog().log(status);
}
}
+
+ protected boolean isTracingEnabled() {
+ // defaults to always log
+ return true;
+ }
}
Show replies by date