eslogger

package
v1.0.0-bc9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 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 ESLogger

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

ESLogger is the implementation of ES cluster logging

func New

func New() ESLogger

New properly creates a new standard output logger initializing its internal state with default values

func (ESLogger) Log

func (logger ESLogger) 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 (ESLogger) WithHost

func (logger ESLogger) WithHost(host string) ESLogger

WithHost sets the ES host and returns the ESLogger itself

func (ESLogger) WithPass

func (logger ESLogger) WithPass(pass string) ESLogger

WithPass sets the ES password and returns the ESLogger itself

func (ESLogger) WithUser

func (logger ESLogger) WithUser(user string) ESLogger

WithUser sets the ES user and returns the ESLogger itself

Jump to

Keyboard shortcuts

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