diff options
author | Siri Hansen <[email protected]> | 2018-08-14 15:49:12 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-08-14 15:49:12 +0200 |
commit | 054c8fc92724672f0fdff486b80a4356347762d4 (patch) | |
tree | cf9698cb3f2b5b820f262ddce5358b18c5e0900d /lib/kernel/doc/src | |
parent | edccc905d6d86f57ff1879b5c6c7068386e2fadb (diff) | |
parent | 80fc5d8bbb7d3fbc626e7206ef8125fd6749a7c6 (diff) | |
download | otp-054c8fc92724672f0fdff486b80a4356347762d4.tar.gz otp-054c8fc92724672f0fdff486b80a4356347762d4.tar.bz2 otp-054c8fc92724672f0fdff486b80a4356347762d4.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/kernel/doc/src')
-rw-r--r-- | lib/kernel/doc/src/logger_formatter.xml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/kernel/doc/src/logger_formatter.xml b/lib/kernel/doc/src/logger_formatter.xml index 9226d19834..5a060fd42b 100644 --- a/lib/kernel/doc/src/logger_formatter.xml +++ b/lib/kernel/doc/src/logger_formatter.xml @@ -130,10 +130,16 @@ </item> <tag><c>single_line = boolean()</c></tag> <item> - <p>If set to <c>true</c>, all newlines in the message are - replaced with <c>", "</c>, and white spaces following - directly after newlines are removed. Notice that newlines - added by the <c>template</c> parameter are not replaced.</p> + <p>If set to <c>true</c>, each log event is printed as a + single line. To achieve this, <c>logger_formatter</c> + sets the field width to <c>0</c> for all <c>~p</c> + and <c>~P</c> control sequences in the format a string + (see <seealso marker="stdlib:io#format-2"> + <c>io:format/2</c></seealso>), and replaces all + newlines in the message with <c>", "</c>. White spaces + following directly after newlines are removed. Notice + that newlines added by the <c>template</c> parameter are + not replaced.</p> <p>Defaults to <c>true</c>.</p> </item> <tag><marker id="template"/> |