Don't log 'Resolve log file' if log level is higher

This PR is a small fix for logging.
The message `Resolve log file to ...` is always logged even if the log level is set to `warn`.
Also, the log level should be resolved before adding appenders.