setup_logging: add log_level

reason: xivo-dird's log_level is configurable
logging: add get_log_level_by_name