add log and production setting