Repository: logging-log4j2 Updated Branches: refs/heads/master af07c2e99 -> f70359519
Javadoc. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f7035951 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f7035951 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f7035951 Branch: refs/heads/master Commit: f703595199d71917373ebe9496cd9a8b18e230c8 Parents: af07c2e Author: ggregory <[email protected]> Authored: Mon Oct 26 16:10:37 2015 -0700 Committer: ggregory <[email protected]> Committed: Mon Oct 26 16:10:37 2015 -0700 ---------------------------------------------------------------------- .../logging/log4j/core/layout/AbstractStringLayout.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f7035951/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractStringLayout.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractStringLayout.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractStringLayout.java index 255c73b..80268ff 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractStringLayout.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/AbstractStringLayout.java @@ -58,6 +58,13 @@ public abstract class AbstractStringLayout extends AbstractLayout<String> { this(charset, null, null); } + /** + * Builds a new layout. + * @param charset the charset used to encode the header bytes, footer bytes and anything else that needs to be + * converted from strings to bytes. + * @param header the header bytes + * @param footer the footer bytes + */ protected AbstractStringLayout(final Charset charset, final byte[] header, final byte[] footer) { super(header, footer); this.charset = charset == null ? StandardCharsets.UTF_8 : charset;
