ch.qos.logback.contrib.jackson
Class JacksonJsonFormatter
java.lang.Object
ch.qos.logback.contrib.jackson.JacksonJsonFormatter
- All Implemented Interfaces:
- JsonFormatter
public class JacksonJsonFormatter
- extends Object
- implements JsonFormatter
Jackson-specific implementation of the JsonFormatter.
- Since:
- 0.1
- Author:
- Les Hazlewood
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
JacksonJsonFormatter
public JacksonJsonFormatter()
toJsonString
public String toJsonString(Map m)
throws IOException
- Specified by:
toJsonString in interface JsonFormatter
- Throws:
IOException
getObjectMapper
public org.codehaus.jackson.map.ObjectMapper getObjectMapper()
setObjectMapper
public void setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper)
isPrettyPrint
public boolean isPrettyPrint()
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint)
Copyright © 2012. All Rights Reserved.