I'm creating a web-server that need log stuff on files and I struggle to found examples to do that the way I want.
Because I'm using tokio, hyper and routerify, I need a better solution than just opening the file every time I want to write something.
I would like to open the file, keep it somewhere and use a simple macro to write like the log crate can provides. But I don't understand where I should create my task, my object and where I should keep it.
Do you rustacean have conceptually answers to that?