log

package
v0.0.0-...-8bbd0fc Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequestData

func LogRequestData(req echo.Context)

func Println

func Println(logType, message string, args ...interface{})

Println creates json formatted log for use in logstash

Types

type Info

type Info struct {
	Host    string    `json:"host"`
	Message string    `json:"message"`
	Errors  []string  `json:"errors"`
	Time    time.Time `json:"time"`
	LogType string    `json:"type"`
}

Info defines the json structure for the log

Jump to

Keyboard shortcuts

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