Best way to emit async network request every time a log is handled? #2788
Replies: 1 comment 1 reply
-
I'm not sure what you might consider to be a "hacky way", but the general approach would be to send the formatted event over a channel where the receiver runs on a spawned task. That task would be responsible for running said async fn. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My logs need to be send to a server in real time. Basically every event needs to run an async fn which sends off the formatted logs. Is there a non hacky way to do this?
Beta Was this translation helpful? Give feedback.
All reactions