File 0212-logger-Polish-code-examples-in-logger-docs.patch of Package erlang

From 39bc26f0feacfe00f4dd9abd426a3408aff13f4c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Wed, 9 Apr 2025 14:33:07 +0200
Subject: [PATCH] logger: Polish code examples in logger docs

---
 lib/kernel/doc/guides/logger_chapter.md | 25 ++++++++++---------------
 1 file changed, 10 insertions(+), 15 deletions(-)

diff --git a/lib/kernel/doc/guides/logger_chapter.md b/lib/kernel/doc/guides/logger_chapter.md
index 077e702670..5c817fd4a5 100644
--- a/lib/kernel/doc/guides/logger_chapter.md
+++ b/lib/kernel/doc/guides/logger_chapter.md
@@ -570,24 +570,21 @@ The following Kernel configuration parameters apply to Logger:
     `default`, then this entry modifies the default handler, equivalent to
     calling
 
-    ```text
-    		logger:remove_handler(default)
-
+    ```erlang
+    logger:remove_handler(default)
     ```
 
     followed by
 
     ```erlang
-    		logger:add_handler(default, Module, HandlerConfig)
-
+    logger:add_handler(default, Module, HandlerConfig)
     ```
 
     For all other values of `HandlerId`, this entry adds a new handler,
     equivalent to calling
 
     ```erlang
-    		logger:add_handler(HandlerId, Module, HandlerConfig)
-
+    logger:add_handler(HandlerId, Module, HandlerConfig)
     ```
 
     Multiple entries of this type are allowed.
@@ -601,8 +598,7 @@ The following Kernel configuration parameters apply to Logger:
     Equivalent to calling
 
     ```erlang
-    		logger:add_primary_filter(FilterId, {FilterFun, FilterConfig})
-
+    logger:add_primary_filter(FilterId, {FilterFun, FilterConfig})
     ```
 
     for each `Filter`.
@@ -616,7 +612,7 @@ The following Kernel configuration parameters apply to Logger:
     modules. Equivalent to calling
 
     ```erlang
-    		logger:set_module_level(Module, Level)
+    logger:set_module_level(Module, Level)
     ```
 
     for each `Module`.
@@ -626,9 +622,8 @@ The following Kernel configuration parameters apply to Logger:
   - **`{proxy, ProxyConfig}`** - Sets the proxy configuration, equivalent to
     calling
 
-    ```text
-    		logger:set_proxy_config(ProxyConfig)
-
+    ```erlang
+    logger:set_proxy_config(ProxyConfig)
     ```
 
     Only one entry of this type is allowed.
@@ -782,7 +777,7 @@ ways:
   handlers written for `error_logger`, just add your event handler
   with
 
-  ```text
+  ```erlang
   error_logger:add_report_handler/1,2.
   ```
 
@@ -826,7 +821,7 @@ level `notice` or more severe, are logged to the terminal via the default
 handler. To also log info events, you can either change the primary log level to
 `info`:
 
-```text
+```erlang
 1> logger:set_primary_config(level, info).
 ok
 ```
-- 
2.43.0

openSUSE Build Service is sponsored by