Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
org.apache.log4j.config |
Package used in getting/setting component properties.
|
org.apache.log4j.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
org.apache.log4j.spi |
Contains part of the System Programming Interface (SPI) needed to
extend log4j.
|
Modifier and Type | Class and Description |
---|---|
class |
Logger
This is the central class in the log4j package.
|
Modifier and Type | Field and Description |
---|---|
protected Category |
Category.parent
The parent of this category.
|
Modifier and Type | Method and Description |
---|---|
static Category |
Category.getInstance(Class clazz)
Deprecated.
Please make sure to use
Logger.getLogger(Class) instead. |
static Category |
Category.getInstance(String name)
Deprecated.
Make sure to use
Logger.getLogger(String) instead. |
Category |
Category.getParent()
Returns the parent of this category.
|
static Category |
Category.getRoot()
Deprecated.
Please use
Logger.getRootLogger() instead. |
Modifier and Type | Method and Description |
---|---|
void |
Hierarchy.emitNoAppenderWarning(Category cat) |
void |
Hierarchy.fireAddAppenderEvent(Category logger,
Appender appender) |
Modifier and Type | Method and Description |
---|---|
protected void |
PropertyPrinter.printOptions(PrintWriter out,
Category cat) |
Constructor and Description |
---|
LogEvent(String fqnOfCategoryClass,
Category logger,
long timeStamp,
Priority level,
Object message,
Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
LogEvent(String fqnOfCategoryClass,
Category logger,
Priority level,
Object message,
Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
Modifier and Type | Class and Description |
---|---|
class |
NOPLogger
No-operation implementation of Logger used by NOPLoggerRepository.
|
class |
RootCategory
Deprecated.
Replaced by
RootLogger . |
class |
RootLogger
RootLogger sits at the top of the logger hierachy.
|
Modifier and Type | Method and Description |
---|---|
Category |
LoggingEvent.getLogger()
Gets the logger of the event.
|
Modifier and Type | Method and Description |
---|---|
void |
HierarchyEventListener.addAppenderEvent(Category cat,
Appender appender) |
void |
LoggerRepository.emitNoAppenderWarning(Category cat) |
void |
NOPLoggerRepository.emitNoAppenderWarning(Category cat) |
void |
LoggerRepository.fireAddAppenderEvent(Category logger,
Appender appender) |
void |
NOPLoggerRepository.fireAddAppenderEvent(Category logger,
Appender appender) |
void |
HierarchyEventListener.removeAppenderEvent(Category cat,
Appender appender) |
Constructor and Description |
---|
LoggingEvent(String fqnOfCategoryClass,
Category logger,
long timeStamp,
Level level,
Object message,
String threadName,
ThrowableInformation throwable,
String ndc,
LocationInfo info,
Map properties)
Create new instance.
|
LoggingEvent(String fqnOfCategoryClass,
Category logger,
long timeStamp,
Priority level,
Object message,
Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
LoggingEvent(String fqnOfCategoryClass,
Category logger,
Priority level,
Object message,
Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
ThrowableInformation(Throwable throwable,
Category category)
Create a new instance.
|
Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.