Documentation
¶
Index ¶
- func Debug(message string)
- func Debugf(message string, extraInfo interface{})
- func Error(message string)
- func Errorf(message string, extraInfo interface{})
- func Fatal(message string)
- func Fatalf(message string, extraInfo interface{})
- func Info(message string)
- func Infof(message string, extraInfo interface{})
- func Trace(message string)
- func Tracef(message string, extraInfo interface{})
- func Warn(message string)
- func Warnf(message string, extraInfo interface{})
- func WithFields(fields Fields) *logrus.Entry
- type Fields
- type LogBody
- type LogBodyFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithFields ¶ added in v1.0.6
WithFields returns a new entry with the given fields. It is a shortcut for `WithFields(Fields(fields))`. See `WithFields` for more details.
Types ¶
type Fields ¶ added in v1.0.6
type Fields map[string]interface{}
Fields type, used to pass to `WithFields`.
type LogBody ¶
type LogBody struct { Timestamp time.Time `json:"@timestamp"` Severity string `json:"severity,omitempty"` Fields LogBodyFields `json:"fields,omitempty"` Extra interface{} `json:"extra,omitempty"` Message string `json:"message,omitempty"` }
type LogBodyFields ¶
type LogBodyFields struct {
Service string `json:"service,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.