aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src/logger_chapter.xml
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-05-02 11:50:49 +0200
committerSiri Hansen <[email protected]>2018-05-03 11:52:37 +0200
commit0d3b793ac551f9c69f9e1c0c5a76186386f3cd04 (patch)
tree0996d5b5f6c4e5f6b6ccb57063d6ea50bfadd0f3 /lib/kernel/doc/src/logger_chapter.xml
parent2ea3d7b972141ac73a1dd7f0ac1a3ccbde342f6d (diff)
downloadotp-0d3b793ac551f9c69f9e1c0c5a76186386f3cd04.tar.gz
otp-0d3b793ac551f9c69f9e1c0c5a76186386f3cd04.tar.bz2
otp-0d3b793ac551f9c69f9e1c0c5a76186386f3cd04.zip
Update logger documentation
Diffstat (limited to 'lib/kernel/doc/src/logger_chapter.xml')
-rw-r--r--lib/kernel/doc/src/logger_chapter.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/kernel/doc/src/logger_chapter.xml b/lib/kernel/doc/src/logger_chapter.xml
index 88dcfbe8d9..78d6f46c95 100644
--- a/lib/kernel/doc/src/logger_chapter.xml
+++ b/lib/kernel/doc/src/logger_chapter.xml
@@ -488,8 +488,9 @@ error_logger:add_report_handler/1,2.
level => debug}
2> <input>logger:add_handler(debug_handler,logger_std_h,Config).</input>
ok</pre>
- <p>By default, the handler receives all events, so we need to add a filter
- to stop all non-debug events:</p>
+ <p>By default, the handler receives all events
+ (<c>filter_defalt=log</c>), so we need to add a filter to stop
+ all non-debug events:</p>
<pre>
3> <input>Fun = fun(#{level:=debug}=Log,_) -> Log; (_,_) -> stop end.</input>
#Fun&lt;erl_eval.12.98642416>