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 Log(severity, message string, extraInfo interface{})
- func Trace(message string)
- func Tracef(message string, extraInfo interface{})
- func Warn(message string)
- func Warnf(message string, extraInfo interface{})
- type LogBody
- type LogBodyFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶ added in v1.0.0
func Debugf(message string, extraInfo interface{})
Debugf - Debug severity with extrainfo
func Errorf ¶ added in v1.0.0
func Errorf(message string, extraInfo interface{})
Errorf - Error severity with extrainfo
func Fatalf ¶ added in v1.0.0
func Fatalf(message string, extraInfo interface{})
Fatalf - Fatal severity with extrainfo
func Infof ¶ added in v1.0.0
func Infof(message string, extraInfo interface{})
Infof - Info severity with extrainfo
Types ¶
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.