The function will attempt to find the most detailed level for given module
by checking if logging is configured for it's parent modules if it's not for
the specific name.
E.g. consensus/voting
We can have no level configured for consensus/voting, but if there is a WARN
level for consensus, this function would return Level.WARN even though
the default log level might be Level.LOG.
Find a configured log level for given module.
The function will attempt to find the most detailed level for given module by checking if logging is configured for it's parent modules if it's not for the specific name.
E.g.
consensus/votingWe can have no level configured for
consensus/voting, but if there is aWARNlevel forconsensus, this function would returnLevel.WARNeven though the default log level might beLevel.LOG.