olxbr/BarterDude

Save JsonLogger logs into a file

Jibaseng opened this issue · 1 comments

I am trying to migrate my synchronous logs to async and I am trying to use the JsonLogger; Is there a way to save the output logs in a file instead of outputting to console?

@Jibaseng take a look at https://github.com/async-worker/aiologger wich is the dependency used by BartedDude to produce logs asynchronously. There's an asynchronous file handler for what you're trying to achieve. https://async-worker.github.io/aiologger/handlers_files.html