Transfer logger correctly when weaver.* exists.

This can be considered as reopen of [rt.cpan.org#80684](https://rt.cpan.org/Ticket/Display.html?id=80684)
It is necessary to wrap root_config to pass logger correctly.