logging

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJSONLoggerWriter

func NewJSONLoggerWriter(verbosity int, event, key string) io.Writer

Types

type CSVLogger

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

func NewCSVLogger

func NewCSVLogger() *CSVLogger

func (*CSVLogger) PrintHeader

func (l *CSVLogger) PrintHeader(hdr *config.Header)

func (*CSVLogger) PrintHeaderEvent

func (l *CSVLogger) PrintHeaderEvent(event *config.HeaderEvent)

type JSONLogger

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

func NewJSONLogger

func NewJSONLogger(verbosity int) *JSONLogger

func (JSONLogger) Debug

func (l JSONLogger) Debug(event string, keyvals ...interface{})

func (JSONLogger) Error

func (l JSONLogger) Error(event string, keyvals ...interface{})

func (JSONLogger) Info

func (l JSONLogger) Info(event string, keyvals ...interface{})

func (JSONLogger) Panic added in v0.1.1

func (l JSONLogger) Panic(event string, keyvals ...interface{})

func (JSONLogger) Trace

func (l JSONLogger) Trace(event string, keyvals ...interface{})

func (JSONLogger) Warn

func (l JSONLogger) Warn(event string, keyvals ...interface{})

func (JSONLogger) With

func (l JSONLogger) With(keyvals ...interface{}) golog.Logger

Jump to

Keyboard shortcuts

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