public final class TLcyErrorLogAddOn extends ALcyPreferencesAddOn
This add-on provides a log dialog that can be opened using an action.
The log dialog will list all warnings and errors that have been logged to the java.util.logging.Logger
instances
while the application was running.
When error and or warning messages are logged, a status event is fired to inform the user about those problems. The status event contains a link which allows to open the log dialog.
The configuration file of this add-on allows to configure to which loggers this add-on should listen.
Currently this add-on only detects warning and error messages which have been logged by a Logger
.
If you have replaced the ILcdLoggerFactory
to change the logging framework,
this add-on will not work.
Note that some 3rd party logging frameworks allow sending their log messages to the JUL logging framework. For example SLF4J has a jul-to-slf4j bridge. This bridge allows the error log add-on to pick up the error and warning messages your application logs to the SLF4J framework.
Constructor and Description |
---|
TLcyErrorLogAddOn()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
plugInto(ILcyLucyEnv aLucyEnv)
Creates and plugs in the add-on's preferences tool.
|
void |
unplugFrom(ILcyLucyEnv aEnv)
Unplugs the add-on's preferences tool.
|
createPreferencesTool, getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefix
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
public void plugInto(ILcyLucyEnv aLucyEnv)
ALcyPreferencesAddOn
plugInto
in class ALcyPreferencesAddOn
aLucyEnv
- the Lucy environment to plug intoALcyAddOn.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
public void unplugFrom(ILcyLucyEnv aEnv)
ALcyPreferencesAddOn
unplugFrom
in class ALcyPreferencesAddOn
aEnv
- the Lucy environmentALcyAddOn.plugInto(com.luciad.lucy.ILcyLucyEnv)