Use custom log function if passed in for statsd errors

:eyeglasses: @spladug