ch.qos.logback.contrib.jackson
Class JacksonJsonFormatter

java.lang.Object
  extended by 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

Field Summary
static int BUFFER_SIZE
           
 
Constructor Summary
JacksonJsonFormatter()
           
 
Method Summary
 com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
           
 boolean isPrettyPrint()
           
 void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
           
 void setPrettyPrint(boolean prettyPrint)
           
 String toJsonString(Map m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

JacksonJsonFormatter

public JacksonJsonFormatter()
Method Detail

toJsonString

public String toJsonString(Map m)
                    throws IOException
Specified by:
toJsonString in interface JsonFormatter
Throws:
IOException

getObjectMapper

public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()

setObjectMapper

public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)

isPrettyPrint

public boolean isPrettyPrint()

setPrettyPrint

public void setPrettyPrint(boolean prettyPrint)


Copyright © 2012-2013. All Rights Reserved.