Help us shape the future of Go! Take the 2026 Go Developer Survey

logstash

package module
v0.0.0-...-571f8cd Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

Go Logstash client written in Go

GoDoc

Documentation

Index

Constants

View Source
const (
	// Error log level.
	Error Level = "error"

	// Warn log level.
	Warn = "warn"

	// Info log level.
	Info = "info"

	// Debug log level.
	Debug = "Debug"

	// None log level.
	None = "None"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level string

Level for message.

type Logstash

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

Logstash client structure.

func New

func New(u string, t int) *Logstash

New Logstash client.

func (*Logstash) Debug

func (l *Logstash) Debug(v ...interface{})

Debug message.

func (*Logstash) Debugf

func (l *Logstash) Debugf(f string, v ...interface{})

Debugf message.

func (*Logstash) Error

func (l *Logstash) Error(v ...interface{})

Error message.

func (*Logstash) Errorf

func (l *Logstash) Errorf(f string, v ...interface{})

Errorf message.

func (*Logstash) Info

func (l *Logstash) Info(v ...interface{})

Info message.

func (*Logstash) Infof

func (l *Logstash) Infof(f string, v ...interface{})

Infof message.

func (*Logstash) Start

func (l *Logstash) Start()

Start message listener.

func (*Logstash) Stop

func (l *Logstash) Stop()

Stop message listener.

func (*Logstash) Warn

func (l *Logstash) Warn(v ...interface{})

Warn message.

func (*Logstash) Warnf

func (l *Logstash) Warnf(f string, v ...interface{})

Warnf message.

type Message

type Message struct {
	Timestamp time.Time `json:"@timestamp"`
	Hostname  string    `json:"hostname"`
	Level     Level     `json:"level,omitempty"`
	Message   string    `json:"message"`
	// contains filtered or unexported fields
}

Message structure.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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