Add log mode to global config