public class Category extends Object implements AppenderAttachable
Modifier and Type | Field and Description |
---|---|
protected Level |
level |
protected Category |
parent |
Modifier | Constructor and Description |
---|---|
protected |
Category(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addAppender(Appender newAppender)
Add an appender.
|
void |
assertLog(boolean assertion,
String msg) |
void |
callAppenders(LoggingEvent event) |
void |
debug(Object message) |
void |
debug(Object message,
Throwable t) |
void |
error(Object message) |
void |
error(Object message,
Throwable t) |
static Logger |
exists(String name) |
void |
fatal(Object message) |
void |
fatal(Object message,
Throwable t) |
protected void |
forcedLog(String fqcn,
Priority level,
Object message,
Throwable t) |
boolean |
getAdditivity() |
Enumeration |
getAllAppenders()
Get all previously added appenders as an Enumeration.
|
Appender |
getAppender(String name)
Get an appender by name.
|
Priority |
getChainedPriority()
Deprecated.
|
static Enumeration |
getCurrentCategories() |
static LoggerRepository |
getDefaultHierarchy()
Deprecated.
|
Level |
getEffectiveLevel() |
LoggerRepository |
getHierarchy()
Deprecated.
|
static Category |
getInstance(Class clazz)
Deprecated.
|
static Category |
getInstance(String name)
Deprecated.
|
Level |
getLevel() |
LoggerRepository |
getLoggerRepository() |
String |
getName() |
Category |
getParent() |
Level |
getPriority()
Deprecated.
|
ResourceBundle |
getResourceBundle() |
protected String |
getResourceBundleString(String key) |
static Category |
getRoot()
Deprecated.
|
void |
info(Object message) |
void |
info(Object message,
Throwable t) |
boolean |
isAttached(Appender appender)
Returns
true if the specified appender is in list of
attached attached, false otherwise. |
boolean |
isDebugEnabled() |
boolean |
isEnabledFor(Priority level) |
boolean |
isInfoEnabled() |
void |
l7dlog(Priority priority,
String key,
Object[] params,
Throwable t) |
void |
l7dlog(Priority priority,
String key,
Throwable t) |
void |
log(Priority priority,
Object message) |
void |
log(Priority priority,
Object message,
Throwable t) |
void |
log(String callerFQCN,
Priority level,
Object message,
Throwable t) |
void |
removeAllAppenders()
Remove all previously added appenders.
|
void |
removeAppender(Appender appender)
Remove the appender passed as parameter from the list of appenders.
|
void |
removeAppender(String name)
Remove the appender with the name passed as parameter from the
list of appenders.
|
void |
setAdditivity(boolean additive) |
void |
setLevel(Level level) |
void |
setPriority(Priority priority) |
void |
setResourceBundle(ResourceBundle bundle) |
static void |
shutdown() |
void |
warn(Object message) |
void |
warn(Object message,
Throwable t) |
protected Category(String name)
public void addAppender(Appender newAppender)
AppenderAttachable
addAppender
in interface AppenderAttachable
public void assertLog(boolean assertion, String msg)
public void callAppenders(LoggingEvent event)
public void debug(Object message)
public void error(Object message)
public void fatal(Object message)
public boolean getAdditivity()
public Enumeration getAllAppenders()
AppenderAttachable
getAllAppenders
in interface AppenderAttachable
public Appender getAppender(String name)
AppenderAttachable
getAppender
in interface AppenderAttachable
public Level getEffectiveLevel()
@Deprecated public Priority getChainedPriority()
public static Enumeration getCurrentCategories()
@Deprecated public static LoggerRepository getDefaultHierarchy()
@Deprecated public LoggerRepository getHierarchy()
public LoggerRepository getLoggerRepository()
@Deprecated public static Category getInstance(String name)
@Deprecated public static Category getInstance(Class clazz)
public final String getName()
public final Category getParent()
public final Level getLevel()
@Deprecated public final Level getPriority()
@Deprecated public static Category getRoot()
public ResourceBundle getResourceBundle()
public void info(Object message)
public boolean isAttached(Appender appender)
AppenderAttachable
true
if the specified appender is in list of
attached attached, false
otherwise.isAttached
in interface AppenderAttachable
public boolean isDebugEnabled()
public boolean isEnabledFor(Priority level)
public boolean isInfoEnabled()
public void removeAllAppenders()
AppenderAttachable
removeAllAppenders
in interface AppenderAttachable
public void removeAppender(Appender appender)
AppenderAttachable
removeAppender
in interface AppenderAttachable
public void removeAppender(String name)
AppenderAttachable
removeAppender
in interface AppenderAttachable
public void setAdditivity(boolean additive)
public void setLevel(Level level)
public void setPriority(Priority priority)
public void setResourceBundle(ResourceBundle bundle)
public static void shutdown()
public void warn(Object message)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.