Set up the loggers in the hooks
Otherwise, we can configure all the loggers we want to log to a file
or anything like this, the loggers won't be configured and thus all
our configuration will be not so useful.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>