Skip to content

Commit 6108781

Browse files
jvzvy
andauthored
Add example
Co-authored-by: Volkan Yazıcı <[email protected]>
1 parent b8f2206 commit 6108781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/site/asciidoc/security.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ This layout is mainly useful for development purposes and should not be relied o
6868
For example, if a log message contains new lines, these are not escaped or encoded specially unless the configured pattern uses the `%encode{pattern}{CRLF}` wrapper pattern converter (which will encode a carriage return as the string `\r` and a line feed as the string `\n`) or some other `%encode` option.
6969
Similarly, other encoding options are available for other formats, but pattern layouts cannot make assumptions about the entire output.
7070
As such, when using unstructured layouts, no user-controlled input should be included in logs.
71-
It is strongly recommended that a structured layout is used instead for these situations.
71+
It is strongly recommended that a structured layout (e.g., `JsonTemplateLayout`) is used instead for these situations.
7272
Note that `StrLookup` plugins (those referenced by `${...}` templates in configuration files) that contain user-provided input should not be referenced by a pattern layout.
7373
7474
=== Structured Logging

0 commit comments

Comments
 (0)