MCPcopy Index your code
hub / github.com/apache/tomcat / VerbatimFormatter

Class VerbatimFormatter

java/org/apache/juli/VerbatimFormatter.java:27–40  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

25 * complete control over the output format.
26 */
27public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected