Json logger, output to http request


#1

Hey,
which logger can i use which is async and can output to json? i want to write a handler for this output which will post it to a remote server.
i’ve tried slog but couldn’t figure out how to do it.
please provide code examples
thasnks


#2

Here’s a basic (highly imperfect) example which implements the log::Log trait and spawns a new thread for each log call:
https://play.rust-lang.org/?gist=2eaed956896797750d738a704af3a5ad&version=stable&mode=debug&edition=2015