org.apache.logging.log4j.core.layout
Class AbstractStringLayout

java.lang.Object
  extended by org.apache.logging.log4j.core.layout.LayoutBase<String>
      extended by org.apache.logging.log4j.core.layout.AbstractStringLayout
All Implemented Interfaces:
Layout<String>
Direct Known Subclasses:
HTMLLayout, PatternLayout, RFC5424Layout, SyslogLayout, XMLLayout

public abstract class AbstractStringLayout
extends LayoutBase<String>

Base class for Layouts that result in a String.


Field Summary
 
Fields inherited from class org.apache.logging.log4j.core.layout.LayoutBase
footer, header, LOGGER
 
Constructor Summary
protected AbstractStringLayout(Charset charset)
           
 
Method Summary
 byte[] format(LogEvent event)
          Format the Log Event.
protected  Charset getCharset()
           
 
Methods inherited from class org.apache.logging.log4j.core.layout.LayoutBase
getFooter, getHeader, setFooter, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.logging.log4j.core.Layout
formatAs
 

Constructor Detail

AbstractStringLayout

protected AbstractStringLayout(Charset charset)
Method Detail

format

public byte[] format(LogEvent event)
Format the Log Event.

Parameters:
event - The Log Event.
Returns:
The formatted event as a byte array.

getCharset

protected Charset getCharset()


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.