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. |
ImplementationIF| Modifier and Type | Field and Description |
|---|---|
protected boolean |
append |
protected java.util.Properties |
arguments
The arguments of the implementation.
|
protected XSDContextIF |
ctx
The context.
|
protected java.lang.Object |
descriptor
The XML object descriptor.
|
protected java.io.PrintStream |
out |
protected boolean |
printSep |
| Constructor and Description |
|---|
DefaultFileHandler()
Create the formatter.
|
| Modifier and Type | Method and Description |
|---|---|
XSDContextIF |
getContext()
Get the context.
|
java.lang.Object |
getDescriptor()
Get the descriptor as an Object.
|
void |
init()
Initialize the work.
|
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.
|
void |
setContext(XSDContextIF ctx)
Set the context.
|
void |
setDescriptor(java.lang.Object descriptor)
Set the xml tree descriptor.
|
flush, isLoggable, setEncoding, setOutputStreamprotected java.io.PrintStream out
protected boolean printSep
protected boolean append
protected XSDContextIF ctx
protected java.util.Properties arguments
protected java.lang.Object descriptor
public void setContext(XSDContextIF ctx)
setContext in interface ImplementationIFctx - the context.public XSDContextIF getContext()
getContext in interface ImplementationIFpublic void setArguments(java.util.Properties args)
throws InvalidArgumentException
setArguments in interface ImplementationIFargs - the property mapInvalidArgumentException - if the arguments are not valid.public void setDescriptor(java.lang.Object descriptor)
throws InvalidDescriptorException
setDescriptor in interface ImplementationIFdescriptor - the tree node.InvalidDescriptorException - if the descriptor isn't valid.public java.lang.Object getDescriptor()
getDescriptor in interface ImplementationIFpublic void init()
throws InitializationFailedException
init in interface ImplementationIFInitializationFailedException - if the initialization fails.public void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.ConsoleHandlerrecord - the log record.