Interface LogService
- All Superinterfaces:
LoggerFactory
Replaced by LoggerFactory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.Since 1.4.static final intDeprecated.Since 1.4.static final intDeprecated.Since 1.4.static final intDeprecated.Since 1.4. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Since 1.4.voidDeprecated.Since 1.4.voidlog(ServiceReference<?> sr, int level, String message) Deprecated.Since 1.4.voidlog(ServiceReference<?> sr, int level, String message, Throwable exception) Deprecated.Since 1.4.
-
Field Details
-
LOG_ERROR
Deprecated.Since 1.4. Replaced byLogLevel.ERROR.An error message (Value 1).This log entry indicates the bundle or service may not be functional.
- See Also:
-
LOG_WARNING
Deprecated.Since 1.4. Replaced byLogLevel.WARN.A warning message (Value 2).This log entry indicates a bundle or service is still functioning but may experience problems in the future because of the warning condition.
- See Also:
-
LOG_INFO
Deprecated.Since 1.4. Replaced byLogLevel.INFO.An informational message (Value 3).This log entry may be the result of any change in the bundle or service and does not indicate a problem.
- See Also:
-
LOG_DEBUG
Deprecated.Since 1.4. Replaced byLogLevel.DEBUG.A debugging message (Value 4).This log entry is used for problem determination and may be irrelevant to anyone but the bundle developer.
- See Also:
-
-
Method Details
-
log
Deprecated.Since 1.4. Replaced byLogger. SeeLoggerFactory.Logs a message.The
ServiceReferencefield and theThrowablefield of theLogEntryobject will be set tonull.This method will log to the bundle's
Loggernamed"LogService.<bsn>"where<bsn>is the Bundle Symbolic Name of the bundle.The specified level is mapped to a
LogLevelas follows:LOG_ERROR-LogLevel.ERRORLOG_WARNING-LogLevel.WARNLOG_INFO-LogLevel.INFOLOG_DEBUG-LogLevel.DEBUG- Any other value -
LogLevel.TRACE
LogEntry.getLevel()must return the specified level.- Parameters:
level- The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.message- Human readable string describing the condition ornull.
-
log
Deprecated.Since 1.4. Replaced byLogger. SeeLoggerFactory.Logs a message with an exception.The
ServiceReferencefield of theLogEntryobject will be set tonull.This method will log to the bundle's
Loggernamed"LogService.<bsn>"where<bsn>is the Bundle Symbolic Name of the bundle.The specified level is mapped to a
LogLevelas follows:LOG_ERROR-LogLevel.ERRORLOG_WARNING-LogLevel.WARNLOG_INFO-LogLevel.INFOLOG_DEBUG-LogLevel.DEBUG- Any other value -
LogLevel.TRACE
LogEntry.getLevel()must return the specified level.- Parameters:
level- The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.message- The human readable string describing the condition ornull.exception- The exception that reflects the condition ornull.
-
log
Deprecated.Since 1.4. Replaced byLogger. SeeLoggerFactory.Logs a message associated with a specificServiceReferenceobject.The
Throwablefield of theLogEntrywill be set tonull.This method will log to the bundle's
Loggernamed"LogService.<bsn>"where<bsn>is the Bundle Symbolic Name of the bundle.The specified level is mapped to a
LogLevelas follows:LOG_ERROR-LogLevel.ERRORLOG_WARNING-LogLevel.WARNLOG_INFO-LogLevel.INFOLOG_DEBUG-LogLevel.DEBUG- Any other value -
LogLevel.TRACE
LogEntry.getLevel()must return the specified level.- Parameters:
sr- TheServiceReferenceobject of the service that this message is associated with ornull.level- The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.message- Human readable string describing the condition ornull.
-
log
Deprecated.Since 1.4. Replaced byLogger. SeeLoggerFactory.Logs a message with an exception associated and aServiceReferenceobject.This method will log to the bundle's
Loggernamed"LogService.<bsn>"where<bsn>is the Bundle Symbolic Name of the bundle.The specified level is mapped to a
LogLevelas follows:LOG_ERROR-LogLevel.ERRORLOG_WARNING-LogLevel.WARNLOG_INFO-LogLevel.INFOLOG_DEBUG-LogLevel.DEBUG- Any other value -
LogLevel.TRACE
LogEntry.getLevel()must return the specified level.- Parameters:
sr- TheServiceReferenceobject of the service that this message is associated with.level- The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.message- Human readable string describing the condition ornull.exception- The exception that reflects the condition ornull.
-