public interface ConfigAppender
extends java.io.Serializable
ConfigAppender
takes charge of managing and associating
appender's general properties.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DST_CONSOLE
Specifies log destination to console.
|
static java.lang.String |
DST_DAILY_ROLLING_FILE
Specifies log destination to daily rolling file.
|
static java.lang.String |
DST_FILE
Specifies log destination to disk file.
|
static java.lang.String |
DST_LF5
Deprecated.
as of version 14.5
|
static java.lang.String |
DST_NTLOG
Deprecated.
as of version 14.5
|
static java.lang.String |
DST_ROLLING_FILE
Specifies log destination to rolling file.
|
static java.lang.String |
DST_SOCKET
Specifies log destination to Socket.
|
static java.lang.String |
DST_SYSLOG
Specifies log destination to Syslog.
|
static java.lang.String |
DST_TELNET
Deprecated.
as of version 14.5
|
static java.lang.String |
LAYOUT_HTML
Property for appender layout type html.
|
static java.lang.String |
LAYOUT_PATTERN
Property for appender layout type pattern.
|
static java.lang.String |
LAYOUT_SIMPLE
Property for appender layout type simple.
|
static java.lang.String |
LAYOUT_TTCC
Property for appender layout type ttcc.
|
static java.lang.String |
LAYOUT_XML
Property for appender layout type xml.
|
static java.lang.String[] |
LAYOUTS
Properties for appender layout types contain
|
static java.lang.String |
THRESHOLD_ALL
Property for appender threshold level ALL.
|
static java.lang.String |
THRESHOLD_DEBUG
Property for appender threshold level DEBUG.
|
static java.lang.String |
THRESHOLD_ERROR
Property for appender threshold level ERROR.
|
static java.lang.String |
THRESHOLD_FATAL
Property for appender threshold level FATAL.
|
static java.lang.String |
THRESHOLD_INFO
Property for appender threshold level INFO.
|
static java.lang.String |
THRESHOLD_OFF
Property for appender threshold level OFF.
|
static java.lang.String |
THRESHOLD_WARN
Property for appender threshold level WARN.
|
static java.lang.String[] |
THRESHOLDS
Properties for appender threshold levels contain
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the appender name, for example, "File", "RollingFile", ..., etc.
|
java.lang.String |
getThreshold()
Gets the threshold of the appender/destination.
|
boolean |
isSelected()
Checks whether the appender is selected as a valid output destination by its logger or not.
|
void |
setSelected(boolean select)
Sets the appender's selectivity to its logger.
|
void |
setThreshold(java.lang.String threshold)
Sets the threshold value to the appender.
|
static final java.lang.String THRESHOLD_OFF
static final java.lang.String THRESHOLD_FATAL
static final java.lang.String THRESHOLD_ERROR
static final java.lang.String THRESHOLD_WARN
static final java.lang.String THRESHOLD_INFO
static final java.lang.String THRESHOLD_DEBUG
static final java.lang.String THRESHOLD_ALL
static final java.lang.String[] THRESHOLDS
THRESHOLD_OFF
,THRESHOLD_FATAL
,THRESHOLD_ERROR
,THRESHOLD_WARN
,THRESHOLD_INFO
,THRESHOLD_DEBUG
,THRESHOLD_ALL
.
static final java.lang.String LAYOUT_PATTERN
static final java.lang.String LAYOUT_HTML
static final java.lang.String LAYOUT_XML
static final java.lang.String LAYOUT_TTCC
static final java.lang.String LAYOUT_SIMPLE
static final java.lang.String[] LAYOUTS
LAYOUT_PATTERN
,LAYOUT_HTML
,LAYOUT_XML
,LAYOUT_TTCC
,LAYOUT_SIMPLE
.
static final java.lang.String DST_FILE
static final java.lang.String DST_ROLLING_FILE
static final java.lang.String DST_DAILY_ROLLING_FILE
static final java.lang.String DST_CONSOLE
static final java.lang.String DST_LF5
static final java.lang.String DST_SOCKET
static final java.lang.String DST_NTLOG
static final java.lang.String DST_SYSLOG
static final java.lang.String DST_TELNET
java.lang.String getName()
java.lang.String getThreshold()
"OFF"
"FATAL"
"ERROR"
"WARN"
"INFO"
"DEBUG"
"ALL"
void setThreshold(java.lang.String threshold)
threshold
- the threshold value.boolean isSelected()
void setSelected(boolean select)
select
- the boolean value to decide whether the appender is set to its logger.