logger

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int
const (
	DebugLevel LogLevel = iota
	InfoLevel
	WarningLevel
	ErrorLevel
)

func (LogLevel) String

func (l LogLevel) String() string

type Logstash

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

func NewLogger

func NewLogger(level LogLevel, system, version, host string, port int, protocol Protocol) *Logstash

func (*Logstash) Close

func (l *Logstash) Close()

func (*Logstash) Debug

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

func (*Logstash) DebugJ

func (l *Logstash) DebugJ(payload map[string]interface{})

func (*Logstash) Error

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

func (*Logstash) ErrorJ

func (l *Logstash) ErrorJ(payload map[string]interface{})

func (*Logstash) Info

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

func (*Logstash) InfoJ

func (l *Logstash) InfoJ(payload map[string]interface{})

func (*Logstash) LogJ

func (l *Logstash) LogJ(payload map[string]interface{})

func (*Logstash) Warn

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

func (*Logstash) WarnJ

func (l *Logstash) WarnJ(payload map[string]interface{})

type Protocol

type Protocol int
const (
	UDP Protocol = iota
	TCP
)

Jump to

Keyboard shortcuts

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