|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Handler is an output. For example a handler might be a console, a file, a socket, or a Logger.
Field Summary | |
static java.lang.String |
APPEND_MODE_ATTRIBUTE
|
static byte |
CONSOLE_HANDLER_TYPE
This constant is used to represent an handler which prints message on a console. |
static byte |
FILE_HANDLER_TYPE
This constant is used to represent an handler which stores message into one file. |
static java.lang.String |
FILE_NUMBER_ATTRIBUTE
|
static byte |
GENERIC_HANDLER_TYPE
This constant is used to represent an handler which stores message into several files. |
static byte |
LOGGER_HANDLER_TYPE
This constant is used to represent an handler which is a Logger. |
static java.lang.String |
MAX_SIZE_ATTRIBUTE
|
static java.lang.String |
OUTPUT_ATTRIBUTE
|
static java.lang.String |
PATTERN_ATTRIBUTE
|
static byte |
ROLLING_FILE_HANDLER_TYPE
This constant is used to represent an handler which stores message into several files. |
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
It retrieves the value of an attribute value of the handler. |
java.lang.String[] |
getAttributeNames()
It retrieves the attributes of the handler |
java.lang.String |
getName()
It retrieves the name of the handler |
byte |
getType()
It retrieves the Handler type |
java.lang.Object |
setAttribute(java.lang.String name,
java.lang.Object value)
It assigns an attributte to the handler. |
void |
setName(java.lang.String name)
It assigns the name of the handler |
Field Detail |
public static final byte FILE_HANDLER_TYPE
public static final byte CONSOLE_HANDLER_TYPE
public static final byte ROLLING_FILE_HANDLER_TYPE
public static final byte GENERIC_HANDLER_TYPE
public static final byte LOGGER_HANDLER_TYPE
public static final java.lang.String OUTPUT_ATTRIBUTE
public static final java.lang.String PATTERN_ATTRIBUTE
public static final java.lang.String APPEND_MODE_ATTRIBUTE
public static final java.lang.String FILE_NUMBER_ATTRIBUTE
public static final java.lang.String MAX_SIZE_ATTRIBUTE
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public byte getType()
public java.lang.String[] getAttributeNames()
public java.lang.Object getAttribute(java.lang.String name)
public java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)
value
- is the attribute value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |