Package org.apache.logging.log4j.core
Interface StringLayout
- All Known Implementing Classes:
AbstractCsvLayout,AbstractStringLayout,CsvLogEventLayout,CsvParameterLayout,GelfLayout,HtmlLayout,JsonLayout,PatternLayout,Rfc5424Layout,SyslogLayout,XmlLayout,YamlLayout
Instantiates the
Layout type for String-based layouts.-
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.Layout
ELEMENT_TYPE -
Method Summary
Modifier and TypeMethodDescriptionGets the Charset this layout uses to encode Strings into bytes.Methods inherited from interface org.apache.logging.log4j.core.Layout
getContentFormat, getContentType, getFooter, getHeader, toByteArray, toSerializable
-
Method Details
-
getCharset
Charset getCharset()Gets the Charset this layout uses to encode Strings into bytes.- Returns:
- the Charset this layout uses to encode Strings into bytes.
-