Changed place where loggers are registered and used for the first time to ensure config parameters are respected.