summary refs log tree commit diff stats
path: root/lib/pure/logging.nim
diff options
context:
space:
mode:
authorkonsumlamm <44230978+konsumlamm@users.noreply.github.com>2021-03-10 19:39:23 +0100
committerGitHub <noreply@github.com>2021-03-10 10:39:23 -0800
commit9819fb21d8db818c0b3027d4e6ba58dc550b77c0 (patch)
treec96be69e439f34b4f191ec5a25ce6ef7b2e0d766 /lib/pure/logging.nim
parenteb07a5a75b63110642c5ce6f9126c9c8af231a64 (diff)
downloadNim-9819fb21d8db818c0b3027d4e6ba58dc550b77c0.tar.gz
Use `.. warning::` (#17320)
Diffstat (limited to 'lib/pure/logging.nim')
-rw-r--r--lib/pure/logging.nim18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/pure/logging.nim b/lib/pure/logging.nim
index ee07cd8f3..b2ace79ab 100644
--- a/lib/pure/logging.nim
+++ b/lib/pure/logging.nim
@@ -45,8 +45,8 @@
 ## ``levelThreshold`` field and the global log filter. The latter can be changed
 ## with the `setLogFilter proc<#setLogFilter,Level>`_.
 ##
-## **Warning:**
-## * For loggers that log to a console or to files, only error and fatal
+## .. warning::
+##   For loggers that log to a console or to files, only error and fatal
 ##   messages will cause their output buffers to be flushed immediately.
 ##   Use the `flushFile proc <io.html#flushFile,File>`_ to flush the buffer
 ##   manually if needed.
@@ -794,9 +794,9 @@ template fatal*(args: varargs[string, `$`]) =
 proc addHandler*(handler: Logger) =
   ## Adds a logger to the list of registered handlers.
   ##
-  ## **Warning:** The list of handlers is a thread-local variable. If the given
-  ## handler will be used in multiple threads, this proc should be called in
-  ## each of those threads.
+  ## .. warning:: The list of handlers is a thread-local variable. If the given
+  ##   handler will be used in multiple threads, this proc should be called in
+  ##   each of those threads.
   ##
   ## See also:
   ## * `getHandlers proc<#getHandlers>`_
@@ -820,10 +820,10 @@ proc setLogFilter*(lvl: Level) =
   ## individual logger's ``levelThreshold``. By default, all messages are
   ## logged.
   ##
-  ## **Warning:** The global log filter is a thread-local variable. If logging
-  ## is being performed in multiple threads, this proc should be called in each
-  ## thread unless it is intended that different threads should log at different
-  ## logging levels.
+  ## .. warning:: The global log filter is a thread-local variable. If logging
+  ##   is being performed in multiple threads, this proc should be called in each
+  ##   thread unless it is intended that different threads should log at different
+  ##   logging levels.
   ##
   ## See also:
   ## * `getLogFilter proc<#getLogFilter>`_