| java.lang.Object logging.PluginLogListener
PluginLogListener | class PluginLogListener implements ILogListener(Code) | | PluginLogListener
This class is responsible for adding itself to the plug-in logging framework
and translating plug-in log requests to Logger events.
author: Manoel Marques |
Constructor Summary | |
| PluginLogListener(ILog log, Logger logger) Creates a new PluginLogListener. |
Method Summary | |
void | dispose() Removes itself from the plug-in log, reset instance variables. | public void | logging(IStatus status, String plugin) Log event happened. |
PluginLogListener | PluginLogListener(ILog log, Logger logger)(Code) | | Creates a new PluginLogListener. Saves the plug-in log and logger instance.
Adds itself to the plug-in log.
Parameters: plugin - the plug-in object Parameters: logger - logger instance |
dispose | void dispose()(Code) | | Removes itself from the plug-in log, reset instance variables.
|
logging | public void logging(IStatus status, String plugin)(Code) | | Log event happened.
Translates status instance to Logger level and message.
Status.ERROR - Level.ERROR
Status.WARNING - Level.WARN
Status.INFO - Level.INFO
Status.CANCEL - Level.FATAL
default - Level.DEBUG
Parameters: status - Log Status Parameters: plugin - plug-in id |
|
|