com.parabon.ec.logging
Class DirectLayout

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by com.parabon.ec.logging.DirectLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class DirectLayout
extends org.apache.log4j.Layout

Logs messages with no formatting. This supports ec loggers that are used as output files rather than logs.

Author:
curt

Field Summary
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
DirectLayout()
          Constructs layout
 
Method Summary
 void activateOptions()
          No-op
 java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
           
 boolean ignoresThrowable()
           
 
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

DirectLayout

public DirectLayout()
Constructs layout

Method Detail

activateOptions

public void activateOptions()
No-op

Specified by:
activateOptions in interface org.apache.log4j.spi.OptionHandler
Specified by:
activateOptions in class org.apache.log4j.Layout

format

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

ignoresThrowable

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