org.eclipse.equinox.log
Interface ExtendedLogService
- All Superinterfaces:
- Logger, LogService
- All Known Implementing Classes:
- ExtendedLogServiceImpl
public interface ExtendedLogService
- extends LogService, Logger
Extends the OSGi Log Service to support the use of named loggers that provide
some additional context when logging.
- Since:
- 3.7
- See Also:
Logger
|
Method Summary |
Logger |
getLogger(Bundle bundle,
java.lang.String loggerName)
Returns the logger associated with this logger name and bundle. |
Logger |
getLogger(java.lang.String loggerName)
Returns the Logger object associated with this logger name for the bundle that retrieved this log service. |
getLogger
Logger getLogger(java.lang.String loggerName)
- Returns the
Logger object associated with this logger name for the bundle that retrieved this log service.
If loggerName is null the default Logger for this bundle is returned.
- Parameters:
loggerName - The logger name.
- Returns:
Logger associated with the logger name.
getLogger
Logger getLogger(Bundle bundle,
java.lang.String loggerName)
- Returns the logger associated with this logger name and bundle.
- Parameters:
loggerName - The logger name.bundle - The bundles associated with this logger. If null the bundle that retrieved this log service is used.
- Returns:
Logger associated with the logger name.
- Throws:
java.lang.SecurityException - if the caller does not have LogPermission[*,LOG].
Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.