es

package
v2.3.3-0...-0c682c3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.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