Class HtmlLayout.Builder
java.lang.Object
org.apache.logging.log4j.core.layout.HtmlLayout.Builder
- All Implemented Interfaces:
Builder<HtmlLayout>
- Enclosing class:
- HtmlLayout
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the object after all configuration has been set.setCharset(Charset charset) setContentType(String contentType) setDatePattern(String datePattern) setFontName(String fontName) setFontSize(HtmlLayout.FontSize fontSize) setLocationInfo(boolean locationInfo) setTimezone(String timezone) withCharset(Charset charset) Deprecated.withContentType(String contentType) Deprecated.since 2.26.0 usesetContentType(String).withFontName(String fontName) Deprecated.since 2.26.0 usesetFontName(String).withFontSize(HtmlLayout.FontSize fontSize) Deprecated.since 2.26.0 usesetFontSize(FontSize).withLocationInfo(boolean locationInfo) Deprecated.since 2.26.0 usesetLocationInfo(boolean).Deprecated.since 2.26.0 usesetTitle(String).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Method Details
-
setLocationInfo
- Since:
- 2.26.0
-
setTitle
- Since:
- 2.26.0
-
setContentType
- Since:
- 2.26.0
-
setCharset
- Since:
- 2.26.0
-
setFontSize
- Since:
- 2.26.0
-
setFontName
- Since:
- 2.26.0
-
setDatePattern
-
setTimezone
-
withLocationInfo
Deprecated.since 2.26.0 usesetLocationInfo(boolean). -
withTitle
Deprecated.since 2.26.0 usesetTitle(String). -
withContentType
Deprecated.since 2.26.0 usesetContentType(String). -
withCharset
Deprecated.since 2.26.0 usesetCharset(Charset). -
withFontSize
Deprecated.since 2.26.0 usesetFontSize(FontSize). -
withFontName
Deprecated.since 2.26.0 usesetFontName(String). -
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.
-
setCharset(Charset).