0
當我嘗試在e4應用程序中使用默認的Eclipse日誌記錄時,我得到一個NPE。NullPointerException當我想使用默認的e4 eclispe日誌記錄
import org.eclipse.e4.core.services.log.Logger;
public abstract class AbstractdUIPlugin extends AbstractUIPlugin {
@Inject
Logger logger;
public void start(BundleContext context) throws Exception {
super.start(context);
// logger = LoggingPlugin.getLogger(this);
logger.info("Plugin[" + getPluginId() + "] started");
}
...