Crate wixet_bootstrap

Source
Expand description

This library just starts and configures a logger and provides a friendly shutdown process for tokio apps. Check init to see how to use it

Structs§

InitContext
The shutdown context. It stores information about the signal handler task

Functions§

init
The main function. Call it as soon as possible in your program. It returns the context and the channel to listen the exit requests
setup_logger
Configures the logger format. If outfile is none, no log file will be written