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

Feature-request: Add public function to create a StructuredLogger instance #2

Open
jmetz opened this issue Apr 2, 2024 · 0 comments · May be fixed by #3
Open

Feature-request: Add public function to create a StructuredLogger instance #2

jmetz opened this issue Apr 2, 2024 · 0 comments · May be fixed by #3

Comments

@jmetz
Copy link

jmetz commented Apr 2, 2024

Add public function to create a StructuredLogger instance (without initialisation), essentially what's currently done here:
https://github.com/iorust/structured-logger/blob/main/src/lib.rs#L201

This would allow possibly combining with other logging crates as it would allow creation of a log-trait satisfying instance.

Started hacking this into my own code, but got stuck as InnerTarget is private (needed to instantiate the writers field.

alekitto added a commit to alekitto/structured-logger that referenced this issue Sep 11, 2024
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

Successfully merging a pull request may close this issue.

1 participant