| |
|
| java.lang.Object java.util.logging.Formatter com.sun.portal.ubt.UBTELFFormatter
UBTELFFormatter | public class UBTELFFormatter extends Formatter (Code) | | This is a simple ELF formatter meant for UBTLogRecord.
This formats various different fields of UBTLogRecord into a tab seperated
String. The fields appear in the order that is given by getHead(Handler)
method. If a field does not have any value or is not part of UBTLogRecord
it is formatted as '-'.
There is no message to localize. So formatMessage is not used.
If needed can be delegated to the super class
|
format | public synchronized String format(LogRecord record)(Code) | | Method to format the message of record.
In this formatter, record is expected to be UBTLogRecord and on that
record, getLogFieldTable() is called to get the HashTable of field
name value pair.
String formatted message Parameters: record - LogRecord message of which need to be formatted. |
getDateFormat | public SimpleDateFormat getDateFormat()(Code) | | Gets the date format that is used by this formatter.
|
getFieldDelimiter | public String getFieldDelimiter()(Code) | | Gets the field delimiter in the formatted message.
String field delimiter |
getFieldEnclosure | public String getFieldEnclosure()(Code) | | Gets the string used to enclose the fields, if any.
String field enclosure |
getFieldNull | public String getFieldNull()(Code) | | Gets the representation of a null fields in this formatter.
|
getHead | public String getHead(Handler handler)(Code) | | Gets the head message of this formatter.
A handler uses this method to log the head message of its formatter
whenever it opens handler to log messages.
The head message of this formatter represents the order of appearence
of the fields for a log level.
Field identifiers are listed based on the handler's log level.
String Head message Parameters: handler - Handler to which this formatter is added. |
getTail | public String getTail(Handler handler)(Code) | | Gets the tail message of the formatter.
A handler calls this method before closing itself.
In this formatter, this message provides the time of the call.
String Tail message Parameters: handler - Handler to which this formatter is added. |
|
|
|