Outputs just the log message with no additional elements and no escaping. Stack traces are not logged. Log messages are separated by System.lineSeparator() . This is intended for use by access logs and the like that need complete control over the output format.
| 25 | * complete control over the output format. |
| 26 | */ |
| 27 | public class VerbatimFormatter extends Formatter { |
| 28 | |
| 29 | /** |
| 30 | * Constructs a new VerbatimFormatter. |
| 31 | */ |
| 32 | public VerbatimFormatter() { |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | public String format(LogRecord record) { |
| 37 | // Timestamp + New line for next record |
| 38 | return record.getMessage() + System.lineSeparator(); |
| 39 | } |
| 40 | } |
nothing calls this directly
no outgoing calls
no test coverage detected