public class Logger
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
Logger.LoggerKey |
Constructor and Description |
---|
Logger(LogCategory category,
LogStream logStream,
java.lang.String baseName) |
Modifier and Type | Method and Description |
---|---|
static void |
configure() |
static void |
configure(java.util.Properties config) |
java.lang.String |
debug(java.lang.String message)
If this level is enabled, then it finds a message for the given key and logs it
|
java.lang.String |
debug(java.lang.String message,
java.lang.Object... args) |
java.lang.String |
debug(java.lang.String message,
java.lang.Throwable t) |
java.lang.String |
debug(java.lang.String message,
java.lang.Throwable t,
java.lang.Object... args) |
static java.lang.String |
delegateClass() |
java.lang.String |
error(java.lang.String message) |
java.lang.String |
error(java.lang.String message,
java.lang.Object... args) |
java.lang.String |
error(java.lang.String message,
java.lang.Throwable t) |
java.lang.String |
error(java.lang.String message,
java.lang.Throwable t,
java.lang.Object... args) |
java.lang.String |
fatal(java.lang.String message) |
java.lang.String |
fatal(java.lang.String message,
java.lang.Object... args) |
java.lang.String |
fatal(java.lang.String message,
java.lang.Throwable t) |
java.lang.String |
fatal(java.lang.String message,
java.lang.Throwable t,
java.lang.Object... args) |
Logger |
getChildLogger(java.lang.String child) |
static Logger |
getInstance(LogCategory category,
java.lang.Class clazz) |
static Logger |
getInstance(LogCategory category,
java.lang.String baseName)
Finds a Logger from the cache and returns it.
|
java.lang.String |
info(java.lang.String message) |
java.lang.String |
info(java.lang.String message,
java.lang.Object... args) |
java.lang.String |
info(java.lang.String message,
java.lang.Throwable t) |
java.lang.String |
info(java.lang.String message,
java.lang.Throwable t,
java.lang.Object... args) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isFatalEnabled() |
boolean |
isInfoEnabled() |
boolean |
isLevelEnable(java.lang.String level) |
static boolean |
isLog4jImplied() |
boolean |
isWarningEnabled() |
void |
log(java.lang.String level,
java.lang.String message) |
static LogStreamFactory |
unsafeDelegateClass() |
java.lang.String |
warning(java.lang.String message) |
java.lang.String |
warning(java.lang.String message,
java.lang.Object... args) |
java.lang.String |
warning(java.lang.String message,
java.lang.Throwable t) |
java.lang.String |
warning(java.lang.String message,
java.lang.Throwable t,
java.lang.Object... args) |
public Logger(LogCategory category, LogStream logStream, java.lang.String baseName)
public static java.lang.String delegateClass()
public static LogStreamFactory unsafeDelegateClass()
public static void configure()
public static void configure(java.util.Properties config)
public static Logger getInstance(LogCategory category, java.lang.String baseName)
category
- - The category of the loggerbaseName
- - The baseName for the ResourceBundlepublic static Logger getInstance(LogCategory category, java.lang.Class clazz)
public static boolean isLog4jImplied()
public Logger getChildLogger(java.lang.String child)
public boolean isDebugEnabled()
public boolean isErrorEnabled()
public boolean isFatalEnabled()
public boolean isInfoEnabled()
public boolean isWarningEnabled()
public boolean isLevelEnable(java.lang.String level)
public void log(java.lang.String level, java.lang.String message)
public java.lang.String debug(java.lang.String message)
message
- - This could be a plain message or a key in Messages.propertiespublic java.lang.String debug(java.lang.String message, java.lang.Object... args)
public java.lang.String debug(java.lang.String message, java.lang.Throwable t)
public java.lang.String debug(java.lang.String message, java.lang.Throwable t, java.lang.Object... args)
public java.lang.String error(java.lang.String message)
public java.lang.String error(java.lang.String message, java.lang.Object... args)
public java.lang.String error(java.lang.String message, java.lang.Throwable t)
public java.lang.String error(java.lang.String message, java.lang.Throwable t, java.lang.Object... args)
public java.lang.String fatal(java.lang.String message)
public java.lang.String fatal(java.lang.String message, java.lang.Object... args)
public java.lang.String fatal(java.lang.String message, java.lang.Throwable t)
public java.lang.String fatal(java.lang.String message, java.lang.Throwable t, java.lang.Object... args)
public java.lang.String info(java.lang.String message)
public java.lang.String info(java.lang.String message, java.lang.Object... args)
public java.lang.String info(java.lang.String message, java.lang.Throwable t)
public java.lang.String info(java.lang.String message, java.lang.Throwable t, java.lang.Object... args)
public java.lang.String warning(java.lang.String message)
public java.lang.String warning(java.lang.String message, java.lang.Object... args)
public java.lang.String warning(java.lang.String message, java.lang.Throwable t)
public java.lang.String warning(java.lang.String message, java.lang.Throwable t, java.lang.Object... args)