public interface ExtendedLogService extends LogService, Logger
Log Service
to support the use of named loggers that provide
some additional context when logging.Logger
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
Modifier and Type | Method and Description |
---|---|
Logger |
getLogger(Bundle bundle,
String loggerName)
Returns the logger associated with this logger name and bundle.
|
Logger |
getLogger(String loggerName)
Returns the
Logger |
log, log, log, log
Logger getLogger(String loggerName)
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.
loggerName
- The logger name.Logger
associated with the logger name.Logger getLogger(Bundle bundle, String loggerName)
loggerName
- The logger name.bundle
- The bundles associated with this logger. If null the bundle that retrieved this log service is used.Logger
associated with the logger name.SecurityException
- if the caller does not have LogPermission[*,LOG]
.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.