org.eclipse.corona.log
Class CoronaLogService

java.lang.Object
  extended by org.eclipse.corona.log.CoronaLogService
All Implemented Interfaces:
org.osgi.service.log.LogService

public class CoronaLogService
extends java.lang.Object
implements org.osgi.service.log.LogService

The Corona LogService is used to post log entries to the OSGi logging service.


Field Summary
static int LOG_TEST
           
static java.lang.String newLine
           
 
Fields inherited from interface org.osgi.service.log.LogService
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
 
Constructor Summary
CoronaLogService()
           
 
Method Summary
 void entering(java.lang.String name)
          Log trace entry for entering a method
 void exiting(java.lang.String name)
          Log trace entry for exiting a method
 boolean isDebugging()
          Check if the debug is enabled for the plug-in
 boolean isDebugging(java.lang.String name)
          Check if debugging is enabled for a bundle's sub-component
 void log(int arg0, java.lang.String arg1)
           
 void log(int arg0, java.lang.String arg1, java.lang.Throwable arg2)
           
 void log(org.osgi.framework.ServiceReference arg0, int arg1, java.lang.String arg2)
           
 void log(org.osgi.framework.ServiceReference arg0, int arg1, java.lang.String arg2, java.lang.Throwable arg3)
           
 void setDebug(boolean debug)
           
 void start(org.osgi.framework.BundleContext context)
          Start the Corona Logging Service
 void stop(org.osgi.framework.BundleContext context)
          Stop the Corona Logging Service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_TEST

public static final int LOG_TEST
See Also:
Constant Field Values

newLine

public static java.lang.String newLine
Constructor Detail

CoronaLogService

public CoronaLogService()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
Start the Corona Logging Service


stop

public void stop(org.osgi.framework.BundleContext context)
Stop the Corona Logging Service


isDebugging

public boolean isDebugging()
Check if the debug is enabled for the plug-in

Returns:

isDebugging

public boolean isDebugging(java.lang.String name)
Check if debugging is enabled for a bundle's sub-component

Parameters:
name - of the bundle's sub-component as defined in the ".options" file
Returns:
true/false

setDebug

public void setDebug(boolean debug)
Parameters:
debug -

entering

public void entering(java.lang.String name)
Log trace entry for entering a method

Parameters:
name -

exiting

public void exiting(java.lang.String name)
Log trace entry for exiting a method

Parameters:
name -

log

public void log(int arg0,
                java.lang.String arg1)
Specified by:
log in interface org.osgi.service.log.LogService
See Also:
LogService.log(int, String)

log

public void log(int arg0,
                java.lang.String arg1,
                java.lang.Throwable arg2)
Specified by:
log in interface org.osgi.service.log.LogService
See Also:
LogService.log(int, String, Throwable)

log

public void log(org.osgi.framework.ServiceReference arg0,
                int arg1,
                java.lang.String arg2)
Specified by:
log in interface org.osgi.service.log.LogService
See Also:
LogService.log(ServiceReference, int, String)

log

public void log(org.osgi.framework.ServiceReference arg0,
                int arg1,
                java.lang.String arg2,
                java.lang.Throwable arg3)
Specified by:
log in interface org.osgi.service.log.LogService
See Also:
LogService.log(ServiceReference, int, String, Throwable)

Copyright 2006 IBM Corporation and others.
All Rights Reserved.