change logging mode