org.apache.felix.bundlerepository
Class Logger
java.lang.Object
org.apache.felix.bundlerepository.Logger
public class Logger
- extends Object
Internal logger to be used in order to avoid a manatory dependency on OSGi LogService.
It first tries to log to a log service implementation if there is one available and then fallback to System out/err
in case there is no log service available.
As OBR implementation (this bundle) logs only errors the strategy is to lookup the log service on each log call.
This can prove as not efficient on a more intensive ussage as for example debug logging, case when a
ServiceListener or ServiceTracker can be used.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG_ERROR
public static final int LOG_ERROR
- See Also:
- Constant Field Values
LOG_WARNING
public static final int LOG_WARNING
- See Also:
- Constant Field Values
LOG_INFO
public static final int LOG_INFO
- See Also:
- Constant Field Values
LOG_DEBUG
public static final int LOG_DEBUG
- See Also:
- Constant Field Values
log
public void log(int level,
String message)
- See Also:
LogService.log(int, String)
log
public void log(int level,
String message,
Throwable exception)
- See Also:
LogService.log(int, String, Throwable)
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.