Package org.eclipse.equinox.log
Interface Logger
- All Superinterfaces:
Logger
- All Known Subinterfaces:
ExtendedLogService
Provides named logger support for the OSGi LogService. Otherwise very similar to the
LogService
.- Since:
- 3.7
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
- Thread Safe:
-
Field Summary
Fields inherited from interface org.osgi.service.log.Logger
ROOT_LOGGER_NAME
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name associated with thisLogger
object.boolean
isLoggable
(int level) Pre-checks if there are LogListeners who are listening for a matching log entry from thisLogger
.void
void
void
Extends theLogService
Logs a message with a context objectvoid
Logs a message with an exception associated and a context object.void
log
(ServiceReference<?> sr, int level, String message) void
log
(ServiceReference<?> sr, int level, String message, Throwable exception) Methods inherited from interface org.osgi.service.log.Logger
audit, audit, audit, audit, debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
Method Details
-
log
- See Also:
-
log
- See Also:
-
log
-
log
-
log
Extends theLogService
Logs a message with a context object- Parameters:
context
- The context object this message is associated with.level
- The log level or severity of the message.message
- A human readable string to associate with log entry.- See Also:
-
log
Logs a message with an exception associated and a context object.- Parameters:
context
- The context object this message is associated with.level
- The log level or severity of the message.message
- A human readable string to associate with log entry.exception
- The exception associated with this entry- See Also:
-
isLoggable
boolean isLoggable(int level) Pre-checks if there are LogListeners who are listening for a matching log entry from thisLogger
.- Parameters:
level
- The log level or severity of the message.- Returns:
boolean
True if there a LogListener listening that can handle a log entry for this log level; false otherwise.- See Also:
-
getName
String getName()Returns the name associated with thisLogger
object.
-