public class Logger extends Object
| Constructor and Description |
|---|
Logger(LogCategory category,
LogStream logStream,
String baseName) |
| Modifier and Type | Method and Description |
|---|---|
static void |
configure() |
String |
debug(String message)
If this level is enabled, then it finds a message for the given key and logs it
|
String |
debug(String message,
Object... args) |
String |
debug(String message,
Throwable t) |
String |
debug(String message,
Throwable t,
Object... args) |
static String |
delegateClass() |
String |
error(String message) |
String |
error(String message,
Object... args) |
String |
error(String message,
Throwable t) |
String |
error(String message,
Throwable t,
Object... args) |
String |
fatal(String message) |
String |
fatal(String message,
Object... args) |
String |
fatal(String message,
Throwable t) |
String |
fatal(String message,
Throwable t,
Object... args) |
Logger |
getChildLogger(String child) |
static Logger |
getInstance(LogCategory category,
Class clazz) |
static Logger |
getInstance(LogCategory category,
String baseName)
Finds a Logger from the cache and returns it.
|
String |
info(String message) |
String |
info(String message,
Object... args) |
String |
info(String message,
Throwable t) |
String |
info(String message,
Throwable t,
Object... args) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalEnabled() |
boolean |
isInfoEnabled() |
boolean |
isLevelEnable(String level) |
static boolean |
isLog4jImplied() |
boolean |
isWarningEnabled() |
void |
log(String level,
String message) |
String |
warning(String message) |
String |
warning(String message,
Object... args) |
String |
warning(String message,
Throwable t) |
String |
warning(String message,
Throwable t,
Object... args) |
public Logger(LogCategory category, LogStream logStream, String baseName)
public static String delegateClass()
public static void configure()
public static Logger getInstance(LogCategory category, String baseName)
category - - The category of the loggerbaseName - - The baseName for the ResourceBundlepublic static Logger getInstance(LogCategory category, Class clazz)
public static boolean isLog4jImplied()
public boolean isDebugEnabled()
public boolean isErrorEnabled()
public boolean isFatalEnabled()
public boolean isInfoEnabled()
public boolean isWarningEnabled()
public boolean isLevelEnable(String level)
public String debug(String message)
message - - This could be a plain message or a key in Messages.propertiesCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.