package
0.4.0
Repository: https://github.com/zendesk/statsd-logger.git
Documentation: pkg.go.dev

# Functions

NewServer returns a local statsd logging server which logs to statsdLogger.DefaultOutput and is formatted with statsdLogger.DefaultFormatter.
Parse takes a raw statsd metric and returns a populated Metric.
WithFormatter is is provided as an option to New to specify a custom formatter usage: statsdLogger.New("0.0.0.0:8125", WithFormatter(myCustomFormatter)).
WithWriter is is provided as an option to New to specify a custom io.Writer to output logs usage: statsdLogger.New("0.0.0.0:8125", WithWriter(os.Stderr)).

# Variables

DefaultAddress to listen for metrics on.
DefaultFormatter provides output format for metrics.
DefaultOutput where to output the logs.

# Structs

Metric is an intermediate representation of a raw statsd metric for easier presentation.

# Interfaces

MetricFormatter formats metrics as a string for logging.
Server listens for statsd metrics, and logs them to the console for development.