|
|
|
|
|
|
|
|
|
|
Re: How to use tinylog in Eclipse plugin [message #1826766 is a reply to message #1826753] |
Thu, 30 April 2020 08:03 |
Ming Cheng Messages: 19 Registered: December 2019 |
Junior Member |
|
|
thanks for the suggestion!
eclipse.ini :
-startup
plugins/org.eclipse.equinox.launcher_1.5.100.v20180827-1352.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.800.v20180827-1352
-product
org.eclipse.epp.package.cpp.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dtinylog.configuration=tinylog.properties
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
-Dbundles.configuration.location=configuration
--add-modules=ALL-SYSTEM
I modified my code to use JOptionPane to show
```
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
generateUTSrc(event);
return null;
}
public void generateUTSrc(ExecutionEvent event)
{
JOptionPane.showMessageDialog(null,System.getProperty("tinylog.configuration"));
Logger.debug("generateUTSrc");
....
}
```
please kindly check attached file content.
[Updated on: Thu, 30 April 2020 08:08] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08818 seconds