Class HtmlLayout.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.HtmlLayout.Builder
-
- All Implemented Interfaces:
Builder<HtmlLayout>
- Enclosing class:
- HtmlLayout
public static class HtmlLayout.Builder extends Object implements Builder<HtmlLayout>
-
-
Method Summary
-
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.util.Builder
getErrorPrefix, isValid
-
-
-
-
Method Detail
-
setLocationInfo
public HtmlLayout.Builder setLocationInfo(boolean locationInfo)
- Since:
- 2.26.0
-
setTitle
public HtmlLayout.Builder setTitle(String title)
- Since:
- 2.26.0
-
setContentType
public HtmlLayout.Builder setContentType(String contentType)
- Since:
- 2.26.0
-
setCharset
public HtmlLayout.Builder setCharset(Charset charset)
- Since:
- 2.26.0
-
setFontSize
public HtmlLayout.Builder setFontSize(HtmlLayout.FontSize fontSize)
- Since:
- 2.26.0
-
setFontName
public HtmlLayout.Builder setFontName(String fontName)
- Since:
- 2.26.0
-
setDatePattern
public HtmlLayout.Builder setDatePattern(String datePattern)
-
setTimezone
public HtmlLayout.Builder setTimezone(String timezone)
-
withLocationInfo
@Deprecated public HtmlLayout.Builder withLocationInfo(boolean locationInfo)
Deprecated.since 2.26.0 usesetLocationInfo(boolean).
-
withTitle
@Deprecated public HtmlLayout.Builder withTitle(String title)
Deprecated.since 2.26.0 usesetTitle(String).
-
withContentType
@Deprecated public HtmlLayout.Builder withContentType(String contentType)
Deprecated.since 2.26.0 usesetContentType(String).
-
withCharset
@Deprecated public HtmlLayout.Builder withCharset(Charset charset)
Deprecated.since 2.26.0 usesetCharset(Charset).
-
withFontSize
@Deprecated public HtmlLayout.Builder withFontSize(HtmlLayout.FontSize fontSize)
Deprecated.since 2.26.0 usesetFontSize(FontSize).
-
withFontName
@Deprecated public HtmlLayout.Builder withFontName(String fontName)
Deprecated.since 2.26.0 usesetFontName(String).
-
build
public HtmlLayout build()
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<HtmlLayout>- Returns:
- the configured instance.
-
-