public class JsonLogFormatter extends Object implements LogFormatter
Constructor and Description |
---|
JsonLogFormatter()
Configure ObjectMapper.
|
Modifier and Type | Method and Description |
---|---|
String |
format(LogBlock logBlock)
Takes in a log block and returns a formatted String to be logged.
|
public String format(LogBlock logBlock)
LogFormatter
format
in interface LogFormatter
logBlock
- the log block that represents a log and that will be formatted in to the needed format.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.