Always log error messages
set log level to the maximum if setting value exceeds it
Apply log configuration before checking the UA parameters