File 0591-logger-Add-progress-report-to-cookbook.patch of Package erlang

From cdcd14eba5cc02942ef3e9e6f5b0ff9af3f5678f Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 4 Nov 2019 16:49:53 +0100
Subject: [PATCH] logger: Add progress report to cookbook

---
 lib/kernel/doc/src/logger_cookbook.xml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/lib/kernel/doc/src/logger_cookbook.xml b/lib/kernel/doc/src/logger_cookbook.xml
index 0363625605..30209f0a90 100644
--- a/lib/kernel/doc/src/logger_cookbook.xml
+++ b/lib/kernel/doc/src/logger_cookbook.xml
@@ -116,6 +116,28 @@ Handler configuration:
     </section>
   </section>
 
+  <section>
+    <title>Configure the Logger</title>
+
+    <section>
+      <title>Where did my progress reports go?</title>
+      <p>In OTP-21 the default primary log level is <c>notice</c>. The means
+        that many log messages are by default not printed. This includes
+        the progress reports of supervisors. In order to get progress reports
+        you need to raise the primary log level to <c>info</c></p>
+      <code type="erl-repl">$ erl -kernel logger_level info
+=PROGRESS REPORT==== 4-Nov-2019::16:33:11.742069 ===
+    application: kernel
+    started_at: nonode@nohost
+=PROGRESS REPORT==== 4-Nov-2019::16:33:11.746546 ===
+    application: stdlib
+    started_at: nonode@nohost
+Eshell V10.5.3  (abort with ^G)
+1></code>
+
+    </section>
+  </section>
+
   <section>
     <title>Configure Logger formatter</title>
     <p>In order to fit better into your existing logging infrastructure Logger can
-- 
2.16.4

openSUSE Build Service is sponsored by