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
Question: Is it possible to initialize logging via a configuration file? #60
Comments
This isn't a feature of
Another alternative is to build your own configuration, and translate that into fern calls. This is probably substantially more work, but if you just need something simple like setting the maximum log level, it should be doable. Glad the library has been useful! :) |
Thanks for the response. I will look into your suggestions. Do you think adding support for this in the future is a good idea? |
In my view, I think it would be more work than what it's worth. Fern does a relatively good job at its two jobs: first, a logging implementation, and second, an rusty interface to configure that implementation. If we added a configuration-based interface, then it could use the implementation, but it'd probably be completely separate from the rusty interface. I don't think that fern's implementation is anything that special, so there wouldn't be too much benefit over configuration interfaces which already exist, like |
I don't see any example of this in docs.rs.
Thanks for writing a very useful library.
The text was updated successfully, but these errors were encountered: