change logging way