Documentation
¶
Overview ¶
v2 implements the v2 version of the go-reporter package.
Index ¶
- type Config
- type Reporter
- func (r *Reporter) Config() *Config
- func (r *Reporter) Crit(msg string, ctx ...interface{})
- func (r *Reporter) Debug(msg string, ctx ...interface{})
- func (r *Reporter) Error(msg string, ctx ...interface{})
- func (r *Reporter) Info(msg string, ctx ...interface{})
- func (r *Reporter) Start(ctx context.Context) error
- func (r *Reporter) Stop(ctx context.Context) error
- func (r *Reporter) Warn(msg string, ctx ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Errors represents the errors reporter configuration.
Errors *errors.Config `yaml:"errors"`
// Logging represents the logging reporter configuration.
Logging *logging.Config `yaml:"logging"`
// Metrics represents the metrics reporter configuration.
Metrics *metrics.Config `yaml:"metrics"`
// Debug represents a flags indicating whether to enable internal reporter activity logging.
// This is mainly for debug purposes.
Debug bool `yaml:"debug"`
}
type Reporter ¶
type Reporter struct {
Errors *errors.Reporter
Logging *logging.Reporter
Metrics *metrics.Reporter
*debug.D
// contains filtered or unexported fields
}
Reporter represents a reporter instance.
func (*Reporter) Crit ¶
Crit is a convenience wrapper around Reporter.Logging.Crit(). It is effective only if the reporter has its logging reporter configured.
func (*Reporter) Debug ¶
Debug is a convenience wrapper around Reporter.Logging.Debug(). It is effective only if the reporter has its logging reporter configured.
func (*Reporter) Error ¶
Error is a convenience wrapper around Reporter.Logging.Error(). It is effective only if the reporter has its logging reporter configured.
func (*Reporter) Info ¶
Info is a convenience wrapper around Reporter.Logging.Info(). It is effective only if the reporter has its logging reporter configured.
Directories
¶
| Path | Synopsis |
|---|---|
|
errors implements an errors/crashes reporter.
|
errors implements an errors/crashes reporter. |
|
internal
|
|
|
logging implements a logs reporter.
|
logging implements a logs reporter. |
|
metrics implements a metrics reporter.
|
metrics implements a metrics reporter. |
|
prometheus
prometheus implements a Prometheus-compatible metrics exporter.
|
prometheus implements a Prometheus-compatible metrics exporter. |