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

Enable logger constructor to accept a log file destination #2297

Closed
jeromy-cannon opened this issue May 23, 2024 · 0 comments · Fixed by #2298
Closed

Enable logger constructor to accept a log file destination #2297

jeromy-cannon opened this issue May 23, 2024 · 0 comments · Fixed by #2298
Assignees
Labels
enhancement New feature or request

Comments

@jeromy-cannon
Copy link
Contributor

Problem

For Solo which runs as a NodeJS CLI we want to be able to write the @hashgraph/sdk logs to a file for debug purposes.

Solution

Update the constructor of the Logger to accept a log file location as a parameter.

Alternatives

pass in a DestinationStream that can be created by the consumer.

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

Successfully merging a pull request may close this issue.

1 participant