public abstract class AbstractLogger extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLogEnabled(int level)
Returns
true if logging for the given level is enabled. |
boolean |
log(int level,
String message,
Throwable ex)
Method to actually emit the log message.
|
boolean |
log(int level,
String pattern,
Throwable ex,
Object... arguments)
Method to actually emit the log message.
|
public boolean isLogEnabled(int level)
true if logging for the given level is enabled.public boolean log(int level,
String pattern,
Throwable ex,
Object... arguments)
level - The log level to log the message atpattern - The java.text.MessageFormat message format
string for preparing the messageex - An optional Throwable whose stack trace is written,arguments - The format arguments for the pattern
string.public boolean log(int level,
String message,
Throwable ex)
level - The log level of the messages. This corresponds to the log
levels defined by the OSGi LogService.message - The message to printex - The Throwable causing the message to be logged.Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.