public class DefaultHandler extends DefaultFileHandler implements ImplementationIF
The object is able to consume the following properties:
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| LEVEL | string | empty | The level value string that can be parsed by the method java.util.logging.Level.parseLevel. |
| FILENAME | string | empty | An optional filename that should be used for output. |
| MODE | string | NEW | If the filename argument is available, this options decides whether to append to the file or the create a new one. If a new one should be created an existing one will be copied to the same filename with .lck extension. Possible values are "NEW" or "APPEND". |
ImplementationIF| Modifier and Type | Field and Description |
|---|---|
protected static int |
APPEND |
protected java.io.File |
file |
protected static int |
NEW |
append, arguments, ctx, descriptor, out, printSep| Constructor and Description |
|---|
DefaultHandler()
Create the formatter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
publish(java.util.logging.LogRecord record)
Publish the log record to the stderr print stream.
|
void |
setArguments(java.util.Properties args)
Set argument property map.
|
getContext, getDescriptor, init, setContext, setDescriptorflush, isLoggable, setEncoding, setOutputStreamgetEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getDescriptor, init, setContext, setDescriptorprotected static final int NEW
protected static final int APPEND
protected java.io.File file
public void setArguments(java.util.Properties args)
throws InvalidArgumentException
setArguments in interface ImplementationIFsetArguments in class DefaultFileHandlerargs - the argument mapInvalidArgumentException - if the arguments are not valid.public void publish(java.util.logging.LogRecord record)
publish in class DefaultFileHandlerrecord - the log record.