com.sdicons.json.log4j
Class JSONLayout

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by com.sdicons.json.log4j.JSONLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class JSONLayout
extends org.apache.log4j.Layout


Field Summary
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
JSONLayout()
           
 
Method Summary
 void activateOptions()
           
 String format(org.apache.log4j.spi.LoggingEvent loggingEvent)
           
 boolean ignoresThrowable()
           
 boolean isIgnoreThrowable()
           
 boolean isPrettyPrint()
           
 void setIgnoreThrowable(String ignoreThrowable)
           
 void setPrettyPrint(String prettyPrint)
           
 
Methods inherited from class org.apache.log4j.Layout
getContentType, getFooter, getHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONLayout

public JSONLayout()
Method Detail

format

public String format(org.apache.log4j.spi.LoggingEvent loggingEvent)
Specified by:
format in class org.apache.log4j.Layout

activateOptions

public void activateOptions()

ignoresThrowable

public boolean ignoresThrowable()
Specified by:
ignoresThrowable in class org.apache.log4j.Layout

isPrettyPrint

public boolean isPrettyPrint()

setPrettyPrint

public void setPrettyPrint(String prettyPrint)

isIgnoreThrowable

public boolean isIgnoreThrowable()

setIgnoreThrowable

public void setIgnoreThrowable(String ignoreThrowable)


Copyright © 2011. All Rights Reserved.