better config handling of log_level