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

Remove default handler #195

Open
Wikunia opened this issue Aug 13, 2024 · 0 comments
Open

Remove default handler #195

Wikunia opened this issue Aug 13, 2024 · 0 comments

Comments

@Wikunia
Copy link

Wikunia commented Aug 13, 2024

In the documentation it is managed that one can remove and push handlers and then gives an example of how one adds a handler and that it will still log on stdout as usual as it is just added. I would like to only log to a file for one of my projects in which I interact with Pluto.jl as Pluto doesn't seem to be able to display Memento logs.

I always get an error like this: IOError: stream is closed or unusable.
A first workaround for this I use was to empty the logger.handlers object and push one handler to write to a file but it's probably not wanted that I work on the handlers field directly without a function.

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

No branches or pull requests

1 participant