程序包 | 说明 |
---|---|
com.fr.third.apache.log4j |
The main log4j package.
|
com.fr.third.apache.log4j.config |
Package used in getting/setting component properties.
|
com.fr.third.apache.log4j.jmx |
This package lets you manage log4j settings using JMX.
|
com.fr.third.apache.log4j.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
com.fr.third.apache.log4j.spi |
Contains part of the System Programming Interface (SPI) needed to
extend log4j.
|
限定符和类型 | 类和说明 |
---|---|
class |
Logger
This is the central class in the log4j package.
|
限定符和类型 | 字段和说明 |
---|---|
protected Category |
Category.parent
The parent of this category.
|
限定符和类型 | 方法和说明 |
---|---|
static Category |
Category.getInstance(java.lang.Class clazz)
已过时。
Please make sure to use
Logger.getLogger(Class) instead. |
static Category |
Category.getInstance(java.lang.String name)
已过时。
Make sure to use
Logger.getLogger(String) instead. |
Category |
Category.getParent()
Returns the parent of this category.
|
static Category |
Category.getRoot()
已过时。
Please use
Logger.getRootLogger() instead. |
限定符和类型 | 方法和说明 |
---|---|
void |
Hierarchy.emitNoAppenderWarning(Category cat) |
void |
Hierarchy.fireAddAppenderEvent(Category logger,
Appender appender) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
PropertyPrinter.printOptions(java.io.PrintWriter out,
Category cat) |
限定符和类型 | 方法和说明 |
---|---|
void |
HierarchyDynamicMBean.addAppenderEvent(Category logger,
Appender appender) |
void |
HierarchyDynamicMBean.removeAppenderEvent(Category cat,
Appender appender) |
构造器和说明 |
---|
LogEvent(java.lang.String fqnOfCategoryClass,
Category logger,
long timeStamp,
Priority level,
java.lang.Object message,
java.lang.Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
LogEvent(java.lang.String fqnOfCategoryClass,
Category logger,
Priority level,
java.lang.Object message,
java.lang.Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
限定符和类型 | 类和说明 |
---|---|
class |
NOPLogger
No-operation implementation of Logger used by NOPLoggerRepository.
|
class |
RootCategory
已过时。
Replaced by
RootLogger . |
class |
RootLogger
RootLogger sits at the top of the logger hierachy.
|
限定符和类型 | 方法和说明 |
---|---|
Category |
LoggingEvent.getLogger()
Gets the logger of the event.
|
限定符和类型 | 方法和说明 |
---|---|
void |
HierarchyEventListener.addAppenderEvent(Category cat,
Appender appender) |
void |
NOPLoggerRepository.emitNoAppenderWarning(Category cat) |
void |
LoggerRepository.emitNoAppenderWarning(Category cat) |
void |
NOPLoggerRepository.fireAddAppenderEvent(Category logger,
Appender appender) |
void |
LoggerRepository.fireAddAppenderEvent(Category logger,
Appender appender) |
void |
HierarchyEventListener.removeAppenderEvent(Category cat,
Appender appender) |
构造器和说明 |
---|
LoggingEvent(java.lang.String fqnOfCategoryClass,
Category logger,
long timeStamp,
Level level,
java.lang.Object message,
java.lang.String threadName,
ThrowableInformation throwable,
java.lang.String ndc,
LocationInfo info,
java.util.Map properties)
Create new instance.
|
LoggingEvent(java.lang.String fqnOfCategoryClass,
Category logger,
long timeStamp,
Priority level,
java.lang.Object message,
java.lang.Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
LoggingEvent(java.lang.String fqnOfCategoryClass,
Category logger,
Priority level,
java.lang.Object message,
java.lang.Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
ThrowableInformation(java.lang.Throwable throwable,
Category category)
Create a new instance.
|