Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Corona Logging"

(Required Bundles)
(Required Bundles)
Line 12: Line 12:
  
 
Bundles/classes/libraries required by Corona Logging:
 
Bundles/classes/libraries required by Corona Logging:
 +
 +
* bundle: ''org.eclipse.corona.logger.log4j''
 +
** class: ''org.eclipse.corona.logger.log4j.listeners.Log4jListener'' -> log listener converting OSGi log events to log4j logs
 +
** class: ''org.eclipse.corona.logger.log4j.Log4jBundleActivator'' -> bundle activator responsible for log4j listener initialization and registration within OSGi Log Reader Service
 +
** log4j.properties -> configuration of log4j loggers, appenders, layouts etc.used by Corona

Revision as of 07:08, 17 August 2006

OSGi Log Service

Corona Logging uses OSGi Log Service. OSGi specifies two log services:

  • Log Service - allows bundles to log information including a message, a level, an exception, a ServiceReference object, and a Bundle object
  • Log Reader Service - allows bundles to access a list of LogEntry objects, and allows the registration of a LogListener object that receives LogEntry objects as they are created.

To extend control over log statements log4j package is used. It is plugged into Corona through the LogListener object registered with the use of the OSGi Log Reader Service.

For details on OSGi services see: OSGi Service Platform, Service Compendium, Release4, August 2005.

Required Bundles

Bundles/classes/libraries required by Corona Logging:

  • bundle: org.eclipse.corona.logger.log4j
    • class: org.eclipse.corona.logger.log4j.listeners.Log4jListener -> log listener converting OSGi log events to log4j logs
    • class: org.eclipse.corona.logger.log4j.Log4jBundleActivator -> bundle activator responsible for log4j listener initialization and registration within OSGi Log Reader Service
    • log4j.properties -> configuration of log4j loggers, appenders, layouts etc.used by Corona

Back to the top