public class CustomPatternLayout
extends org.apache.log4j.Layout
Modifier and Type | Field and Description |
---|---|
protected int |
BUF_SIZE |
static String |
DEFAULT_CONVERSION_PATTERN |
private org.apache.log4j.helpers.PatternConverter |
head |
private String |
header |
protected int |
MAX_CAPACITY |
private String |
pattern |
private StringBuffer |
sbuf |
static String |
TTCC_CONVERSION_PATTERN |
Constructor and Description |
---|
CustomPatternLayout() |
CustomPatternLayout(String pattern) |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
protected org.apache.log4j.helpers.PatternParser |
createPatternParser(String pattern) |
String |
format(org.apache.log4j.spi.LoggingEvent event) |
String |
getConversionPattern() |
String |
getHeader() |
private String |
getHostName() |
boolean |
ignoresThrowable() |
void |
setConversionPattern(String conversionPattern) |
private void |
setHeader() |
void |
setHeader(String header) |
private String header
public static final String DEFAULT_CONVERSION_PATTERN
public static final String TTCC_CONVERSION_PATTERN
protected final int BUF_SIZE
protected final int MAX_CAPACITY
private StringBuffer sbuf
private String pattern
private org.apache.log4j.helpers.PatternConverter head
public CustomPatternLayout()
public CustomPatternLayout(String pattern)
public void setConversionPattern(String conversionPattern)
public String getConversionPattern()
public void activateOptions()
public boolean ignoresThrowable()
ignoresThrowable
in class org.apache.log4j.Layout
protected org.apache.log4j.helpers.PatternParser createPatternParser(String pattern)
public String format(org.apache.log4j.spi.LoggingEvent event)
format
in class org.apache.log4j.Layout
public String getHeader()
getHeader
in class org.apache.log4j.Layout
private void setHeader()
private String getHostName()
public void setHeader(String header)
Copyright © 2013–2014. All rights reserved.