Wrap all log calls in an if (log.IsX)

Even if we don't have any format args, we still incur the cost of the
resource manager resolving the string!