Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct { Service string Version string StackSkip []string SkipTimestamp bool RegexSkip string }
Formatter implements Stackdriver formatting for logrus.
func NewFormatter ¶
NewFormatter returns a new Formatter.
type Logger ¶ added in v0.1.1
Logger is a gokit-compatible wrapper for logrus.Logger
func NewStackdriverLogger ¶ added in v0.1.1
NewStackdriverLogger creates a gokit-compatible logger
type Option ¶
type Option func(*Formatter)
Option lets you configure the Formatter.
func WithRegexSkip ¶ added in v0.1.1
WithRegexSkip lets you configure which functions or packages should be skipped for locating the error.
func WithService ¶
WithService lets you configure the service name used for error reporting.
func WithSkipTimestamp ¶ added in v0.1.1
func WithSkipTimestamp() Option
WithSkipTimestamp lets you avoid setting the timestamp
func WithStackSkip ¶
WithStackSkip lets you configure which packages should be skipped for locating the error.
func WithVersion ¶
WithVersion lets you configure the service version used for error reporting.