add log level setting and update locales