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");
}
...