es

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewES

func NewES() logs.Logger

NewES returns a LoggerInterface

func SetIndexNaming

func SetIndexNaming(i IndexNaming)

SetIndexNaming will register global IndexNaming

Types

type IndexNaming

type IndexNaming interface {
	IndexName(lm *logs.LogMsg) string
}

IndexNaming generate the index name

type LogDocument

type LogDocument struct {
	Timestamp string `json:"timestamp"`
	Msg       string `json:"msg"`
}

Jump to

Keyboard shortcuts

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