Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in std/logging implement removeHandler #23757

Open
steschuser opened this issue Jun 25, 2024 · 0 comments
Open

in std/logging implement removeHandler #23757

steschuser opened this issue Jun 25, 2024 · 0 comments

Comments

@steschuser
Copy link

steschuser commented Jun 25, 2024

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

import std/logging

var consoleLog = newConsoleLogger()
var fileLog = newFileLogger("errors.log", levelThreshold=lvlError)
var rollingLog = newRollingFileLogger("rolling.log")

addHandler(consoleLog)
removeHandler(consoleLog)

addHandler(fileLog)
removeHandler(fileLog)

addHandler(rollingLog)

Links

https://nim-lang.org/docs/logging.html#addHandler%2CLogger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants