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

Better logging for Environments where the environment variable is not controlled #143

Open
berendsliedrecht opened this issue Mar 13, 2023 · 0 comments

Comments

@berendsliedrecht
Copy link
Contributor

Right now, env_logger is used just like in aries-askar and indy-vdr, but this can get rather annoying in React Native environments. The custom logger callback is causing some issues in Node.JS with regards to GC.

My proposed solution would be the following:

  1. create set_logger(level: "debug" | "info" | "trace" | "env")
  • This would just print the logs to stdout or stderr
  • env would just do it like the current setup with RUST_LOG. This would still allow some nice flexibility with namespace logging.
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