You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the module allows for a handler to be added multiple times, for
the sake of consistency, `removeHandler` only removes the first found
instance of the handler in the `handlers` seq. So for n calls of
`addHandler` using the same handler, n calls of `removeHandler` are
required.
fixes#23757
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
metagn
pushed a commit
to metagn/Nim
that referenced
this issue
Sep 21, 2024
nim-lang#24143)
Since the module allows for a handler to be added multiple times, for
the sake of consistency, `removeHandler` only removes the first found
instance of the handler in the `handlers` seq. So for n calls of
`addHandler` using the same handler, n calls of `removeHandler` are
required.
fixesnim-lang#23757
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Summary
In the std/logging module is a addHandler proc but a corresponding removeHandler seems to be missing
Description
I'd like to remove already added handlers :)
Alternatives
No response
Examples
Links
https://nim-lang.org/docs/logging.html#addHandler%2CLogger
The text was updated successfully, but these errors were encountered: