Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extra ¶
type Extra map[string]interface{}
Extra is a type you wrap around data to be added
as extra fields to JSON.
type GELFFormatter ¶
type GELFFormatter struct {
// contains filtered or unexported fields
}
GLEFFormatter provides a formatter that outputs GELF v1.1 data. It will also encode extra information such as an http.Request.
func New ¶
func New() *GELFFormatter
func NewGELFFormatter ¶
func NewGELFFormatter() *GELFFormatter
NewGELFFormatter returns a new GELFFormatter
func (*GELFFormatter) Format ¶
func (f *GELFFormatter) Format(context log.LogContext) []byte
Format formats a LogContext into the GELF format.
func (*GELFFormatter) ShouldRuntimeCaller ¶
func (f *GELFFormatter) ShouldRuntimeCaller() bool
ShouldRuntimeCaller will always return true.
Click to show internal directories.
Click to hide internal directories.