From 992b57ad0a52f7a3ba945cbfaea53ce3ae3c3f5d Mon Sep 17 00:00:00 2001
From: Siri Hansen
Date: Wed, 25 Apr 2018 18:49:09 +0200
Subject: Add chars_limit option to logger_formatter
---
lib/kernel/doc/src/logger_formatter.xml | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
(limited to 'lib/kernel/doc')
diff --git a/lib/kernel/doc/src/logger_formatter.xml b/lib/kernel/doc/src/logger_formatter.xml
index 213a592e47..6a17e3641f 100644
--- a/lib/kernel/doc/src/logger_formatter.xml
+++ b/lib/kernel/doc/src/logger_formatter.xml
@@ -77,13 +77,21 @@
rewritten. The format controls ~p and ~w are replaced with
~P and ~W, respectively, and the value is used as the depth
parameter. For details, see
- io:format/2
+ io:format/2,3
in STDLIB.
+ chars_limit is a positive integer representing the
+ value of the option with the same name to be used when calling
+ io:format/3. This
+ value limits the total number of characters printed bu the
+ formatter. Notes that this is a soft limit. For a hard
+ truncation limit, see option max_size.
+
max_size is a positive integer representing the
maximum size a string returned from this formatter can
- have. If the formatted string is longer, it will be
- truncated.
+ have. If the formatted string is longer, after possibly
+ being limited by depth and/or chars_limit, it
+ will be truncated.
utc is a boolean. If set to true, all dates are
displayed in Universal Coordinated Time. Default
--
cgit v1.2.3