Use .. warning:: (#17320)
This commit is contained in:
parent
eb07a5a75b
commit
9819fb21d8
15 changed files with 84 additions and 88 deletions
|
|
@ -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>`_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue