elasticsearch

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is the implementation of ES cluster logging

func NewLogger

func NewLogger() Logger

NewLogger properly creates a new elasticsearch logger

func (Logger) Log

func (esLogger Logger) Log(msg logging.LogMessage) error

Log sends a logging message to an ES cluster If logger fails to deliver the message then logs an error message to the standard output logger

func (Logger) WithHost

func (esLogger Logger) WithHost(host string) Logger

WithHost sets the ES host and returns the Logger itself

func (Logger) WithPass

func (esLogger Logger) WithPass(pass string) Logger

WithPass sets the ES password and returns the Logger itself

func (Logger) WithUser

func (esLogger Logger) WithUser(user string) Logger

WithUser sets the ES user and returns the Logger itself

Jump to

Keyboard shortcuts

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