-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix(js): several fixes for js wrapper #131
Conversation
Signed-off-by: Timo Glastra <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
Signed-off-by: blu3beri <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
@@ -39,6 +39,7 @@ export interface Anoncreds { | |||
version(): string | |||
|
|||
getCurrentError(): string | |||
setDefaultLogger(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way in these new components to set a custom logger like we did in indy-sdk to log in our language of choice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We never implemented that method for React Native, only Node.JS. I think it should be possible, but not sure how to do it currently. We thought defaultLogger would be enough for now and we can add the custom logger later on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't do that recently but I remember that in NodeJS I needed to set environment variable RUST_LOG=anoncreds:loglevel
in addition to a call to set_default_logger. In React Native this can also be achieved so Rust traces can be seen in Android logcat or something?
Signed-off-by: blu3beri <[email protected]>
Signed-off-by: blu3beri <[email protected]>
Signed-off-by: blu3beri <[email protected]>
Signed-off-by: blu3beri <[email protected]>
Signed-off-by: blu3beri <[email protected]>
Signed-off-by: blu3beri <[email protected]>
Signed-off-by: blu3beri <[email protected]>
closes #125 |
Signed-off-by: Timo Glastra <[email protected]>
Tested in React Native |
Signed-off-by: Timo Glastra <[email protected]>
Since we can just use |
Similar to hyperledger/indy-vdr#170 and openwallet-foundation/askar#111 but for anoncreds