public class SingleLineFormat extends java.lang.Object implements MessageFormattingStrategy
Constructor and Description |
---|
SingleLineFormat() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatMessage(int connectionId,
java.lang.String now,
long elapsed,
java.lang.String category,
java.lang.String prepared,
java.lang.String sql)
Formats a log message for the logging module
|
public java.lang.String formatMessage(int connectionId, java.lang.String now, long elapsed, java.lang.String category, java.lang.String prepared, java.lang.String sql)
formatMessage
in interface MessageFormattingStrategy
connectionId
- the id of the connectionnow
- the current ime expressing in millisecondselapsed
- the time in milliseconds that the operation took to completecategory
- the category of the operationprepared
- the SQL statement with all bind variables replaced with actual valuessql
- the sql statement executed