Package | Description |
---|---|
org.apache.log |
Avalon LogKit is the logging framework used throughout
the Avalon project.
|
org.apache.log.format |
This package contains formmaters that serialize LogEvents to strings.
|
org.apache.log.output |
This package contains some useful output destination LogTargets.
|
org.apache.log.util |
Utilities suppporting the logging framework.
|
Modifier and Type | Field and Description |
---|---|
static Priority |
Priority.DEBUG
Developer orientated messages, usually used during development of product.
|
static Priority |
Priority.ERROR
A problem has occurred but it is not fatal.
|
static Priority |
Priority.FATAL_ERROR
Something caused whole system to fail.
|
static Priority |
Priority.INFO
Useful information messages such as state changes, client connection, user login etc.
|
static Priority |
Priority.NONE
Do not log anything.
|
static Priority |
Priority.WARN
A problem or conflict has occurred but it may be recoverable, then
again it could be the start of the system failing.
|
Modifier and Type | Method and Description |
---|---|
Priority |
LogEvent.getPriority()
Get Priority for LogEvent.
|
static Priority |
Priority.getPriorityForName(String priority)
Retrieve a Priority object for the name parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Priority.isGreater(Priority other)
Test whether this priority is greater than other priority.
|
boolean |
Priority.isLower(Priority other)
Test whether this priority is lower than other priority.
|
boolean |
Priority.isLowerOrEqual(Priority other)
Test whether this priority is lower or equal to other priority.
|
boolean |
Logger.isPriorityEnabled(Priority priority)
Determine if messages of priority will be logged.
|
void |
Logger.log(Priority priority,
String message)
Log a event at specific priority with a certain message.
|
void |
Logger.log(Priority priority,
String message,
Throwable throwable)
Log a event at specific priority with a certain message and throwable.
|
void |
Hierarchy.setDefaultPriority(Priority priority)
Set the default priority for hierarchy.
|
void |
LogEvent.setPriority(Priority priority)
Set the priority of LogEvent.
|
void |
Logger.setPriority(Priority priority)
Set the priority for this logger.
|
Modifier and Type | Method and Description |
---|---|
protected String |
PatternFormatter.getPriority(Priority priority,
String format)
Get formatted priority string.
|
Constructor and Description |
---|
MemoryTarget(LogTarget target,
int size,
Priority threshold)
Creation of a new instance of the memory target.
|
PriorityFilteringTarget(Priority priority) |
PriorityFilteringTarget(Priority priority,
boolean closeWrappedTarget) |
Constructor and Description |
---|
LoggerOutputStream(Logger logger,
Priority priority)
Construct OutputStreamLogger to write to a particular logger at a particular priority.
|
Copyright © 1997–2019. All rights reserved.