org.apache.log4j
Class Category
java.lang.Object
org.apache.log4j.Category
- Direct Known Subclasses:
- Logger
public class Category
- extends Object
Implementation of the Category class for compatibility, despite it having been deprecated a long, long time ago.
Method Summary |
void |
debug(Object message)
|
void |
debug(Object message,
Throwable t)
|
void |
error(Object message)
|
void |
error(Object message,
Throwable t)
|
boolean |
exists(String name)
|
void |
fatal(Object message)
|
void |
fatal(Object message,
Throwable t)
|
void |
forcedLog(String fqcn,
Priority level,
Object message,
Throwable t)
|
boolean |
getAdditivity()
|
Priority |
getChainedPriority()
|
Level |
getEffectiveLevel()
|
static Category |
getInstance(Class clazz)
|
static Category |
getInstance(String name)
|
Level |
getLevel()
|
String |
getName()
|
Category |
getParent()
|
Level |
getPriority()
|
ResourceBundle |
getResourceBundle()
|
static Category |
getRoot()
|
void |
info(Object message)
|
void |
info(Object message,
Throwable t)
|
boolean |
isDebugEnabled()
|
boolean |
isEnabledFor(Priority level)
|
boolean |
isErrorEnabled()
|
boolean |
isFatalEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isTraceEnabled()
|
boolean |
isWarnEnabled()
|
void |
l7dlog(Priority priority,
String key,
Object[] params,
Throwable t)
|
void |
l7dlog(Priority priority,
String key,
Throwable t)
|
void |
setAdditivity(boolean additivity)
|
void |
setLevel(Level level)
|
void |
setPriority(Priority priority)
|
void |
setResourceBundle(ResourceBundle bundle)
|
void |
trace(Object message)
|
void |
trace(Object message,
Throwable t)
|
void |
warn(Object message)
|
void |
warn(Object message,
Throwable t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bundle
protected ResourceBundle bundle
- Resource bundle for localized messages.
Category
protected Category(LoggerContext context,
String name)
- Constructor used by Logger to specify a LoggerContext.
- Parameters:
context
- The LoggerContext.name
- The name of the Logger.
Category
protected Category(String name)
- Constructor exposed by Log4j 1.2.
- Parameters:
name
- The name of the Logger.
getInstance
public static Category getInstance(String name)
getInstance
public static Category getInstance(Class clazz)
getName
public final String getName()
getParent
public final Category getParent()
getRoot
public static Category getRoot()
getEffectiveLevel
public final Level getEffectiveLevel()
getChainedPriority
public final Priority getChainedPriority()
getLevel
public final Level getLevel()
setLevel
public void setLevel(Level level)
getPriority
public final Level getPriority()
setPriority
public void setPriority(Priority priority)
debug
public void debug(Object message)
debug
public void debug(Object message,
Throwable t)
isDebugEnabled
public boolean isDebugEnabled()
error
public void error(Object message)
error
public void error(Object message,
Throwable t)
isErrorEnabled
public boolean isErrorEnabled()
warn
public void warn(Object message)
warn
public void warn(Object message,
Throwable t)
isWarnEnabled
public boolean isWarnEnabled()
fatal
public void fatal(Object message)
fatal
public void fatal(Object message,
Throwable t)
isFatalEnabled
public boolean isFatalEnabled()
info
public void info(Object message)
info
public void info(Object message,
Throwable t)
isInfoEnabled
public boolean isInfoEnabled()
trace
public void trace(Object message)
trace
public void trace(Object message,
Throwable t)
isTraceEnabled
public boolean isTraceEnabled()
isEnabledFor
public boolean isEnabledFor(Priority level)
forcedLog
public void forcedLog(String fqcn,
Priority level,
Object message,
Throwable t)
exists
public boolean exists(String name)
getAdditivity
public boolean getAdditivity()
setAdditivity
public void setAdditivity(boolean additivity)
setResourceBundle
public void setResourceBundle(ResourceBundle bundle)
getResourceBundle
public ResourceBundle getResourceBundle()
l7dlog
public void l7dlog(Priority priority,
String key,
Throwable t)
l7dlog
public void l7dlog(Priority priority,
String key,
Object[] params,
Throwable t)
Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.