public class DefaultFileHandler extends java.util.logging.ConsoleHandler implements ImplementationIF
The object is able to consume the following properties:
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| FILENAME | file | This is an obligatory property and must be presented. | The name of the file to be used to save message. |
| MODE | string | empty | This property is ued to influence the file behavior. Use the value APPEND to append messages coming from different runs. |
| LEVEL | string | empty | The level value string that can be parsed by the method java.util.logging.Level.parseLevel. |
| BACKUP-FILENAME | string | empty | If this value is present and the MODE is not append, it will be used to backup existing log files. |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
append |
protected boolean |
printSep |
protected Transformer |
transformer |
| Constructor and Description |
|---|
DefaultFileHandler()
Create the formatter.
|
DefaultFileHandler(Transformer transformer,
java.util.Properties arguments)
Create the handler.
|
| 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 arguments)
Set argument property map.
|
void |
setTransformer(Transformer transformer)
Set the transformer implementation.
|
flush, isLoggable, setEncoding, setOutputStreamprotected Transformer transformer
protected boolean printSep
protected boolean append
public DefaultFileHandler()
public DefaultFileHandler(Transformer transformer, java.util.Properties arguments) throws java.io.FileNotFoundException
transformer - the transformerarguments - the argumentsjava.io.FileNotFoundExceptionpublic void setTransformer(Transformer transformer)
setTransformer in interface TransformerRequestedtransformer - The transformer.public void setArguments(java.util.Properties arguments)
throws java.io.FileNotFoundException
setArguments in interface PropertiesRequestedarguments - the property mapjava.io.FileNotFoundExceptionpublic void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.ConsoleHandlerrecord - the log record.