public final class Log4jImpl extends Logger implements Logger
additive, level, name, parent, repository, resourceBundle| Modifier | Constructor and Description |
|---|---|
protected |
Log4jImpl(String name)
Constructor, like the constructor of
Logger. |
| Modifier and Type | Method and Description |
|---|---|
static void |
configure(String s)
Calls the configure method of DOMConfigurator, and redirect
standard error to STDERR category.
|
protected static void |
doConfigure(File f)
Performs the actual parsing of the log4j configuration file and handles the errors
|
protected static void |
doConfigure(InputStream i) |
static Category |
getInstance(String name)
Deprecated.
|
static Logger |
getLogger(String name) |
static Log4jImpl |
getLoggerInstance(String name)
As getLogger, but cast to MMBase Logger already.
|
static MDC |
getMDC() |
boolean |
isEnabledFor(Level l) |
boolean |
isServiceEnabled()
Returns true if for this category (Logger), a call to service
(or debug or trace) would do something.
|
boolean |
isTraceEnabled()
Returns true if for this category (Logger), a call to trace
would do something.
|
void |
service(Object message)
A new logging method that takes the SERVICE priority.
|
void |
service(Object message,
Throwable t) |
void |
setLevel(Level p)
If you want to override the level in the configuration file
fixed for this category, you can do it with this method.
|
static void |
shutdown() |
void |
trace(Object message)
A new logging method that takes the TRACE priority.
|
void |
trace(Object message,
Throwable t) |
getLogger, getLogger, getRootLoggeraddAppender, assertLog, callAppenders, debug, debug, error, error, exists, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getChainedPriority, getCurrentCategories, getDefaultHierarchy, getEffectiveLevel, getHierarchy, getInstance, getLevel, getLoggerRepository, getName, getParent, getPriority, getResourceBundle, getResourceBundleString, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isInfoEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setLevel, setPriority, setResourceBundle, warn, warnpublic static Log4jImpl getLoggerInstance(String name)
public static MDC getMDC()
public static void configure(String s)
s - A string to the xml-configuration file. Can be
absolute, or relative to the Logging configuration file.protected static void doConfigure(InputStream i)
protected static void doConfigure(File f)
public void setLevel(Level p)
Loggerpublic static Category getInstance(String name)
getLogger(java.lang.String)Category.getInstance(java.lang.String) by supplying
its own factory type as a parameter.public final void trace(Object message)
trace in interface Loggertrace in class LoggerLogger.debug(Object)public final void service(Object message)
public final boolean isServiceEnabled()
LoggerisServiceEnabled in interface Loggerpublic final boolean isTraceEnabled()
LoggerisTraceEnabled in interface LoggerisTraceEnabled in class Loggerpublic final boolean isEnabledFor(Level l)
isEnabledFor in interface Loggerpublic static void shutdown()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}