logging

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v1.0.0

func Debug(message string)

Debug - Debug severity logging

func Debugf added in v1.0.0

func Debugf(message string, extraInfo interface{})

Debugf - Debug severity with extrainfo

func Error added in v1.0.0

func Error(message string)

Error - Error severity logging

func Errorf added in v1.0.0

func Errorf(message string, extraInfo interface{})

Errorf - Error severity with extrainfo

func Fatal added in v1.0.0

func Fatal(message string)

Fatal - Fatal severity logging

func Fatalf added in v1.0.0

func Fatalf(message string, extraInfo interface{})

Fatalf - Fatal severity with extrainfo

func Info added in v1.0.0

func Info(message string)

Info - Info severity logging

func Infof added in v1.0.0

func Infof(message string, extraInfo interface{})

Infof - Info severity with extrainfo

func Log

func Log(severity, message string, extraInfo interface{})

func Trace added in v1.0.0

func Trace(message string)

Trace - Trace severity logging

func Tracef added in v1.0.0

func Tracef(message string, extraInfo interface{})

Tracef - Trace severity with extrainfo

func Warn added in v1.0.0

func Warn(message string)

Warn - Warn severity logging

func Warnf added in v1.0.0

func Warnf(message string, extraInfo interface{})

Warnf - Warn 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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL