public class ELFFormatter extends Formatter
Constructor and Description |
---|
ELFFormatter()
returns a ELF Formatter
|
Modifier and Type | Method and Description |
---|---|
String |
format(LogRecord logRecord)
Format the given record as per ELF and return a formatted string.
|
String |
getHead(Handler handler)
According to ELF, the log file should start with a #Version which
specifies the ELF version used followed by a #Fields line which specifies
all the fields that are being logged.
|
String |
getTail(Handler handler)
Returns an empty string.
|
formatMessage
public String format(LogRecord logRecord)
For ELF Specifications refer
public String getHead(Handler handler)
ELFFormatter uses this method to return back the header containing these two lines. FileHandler checks if the header is already written, if not uses this method to get the header and puts it at the beginning of the file.
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.