logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuiltinLogger

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

BuiltinLogger is a logger using Go's built-in logger.

func NewBuiltinLogger

func NewBuiltinLogger() *BuiltinLogger

NewBuiltinLogger creates a new logger using Go's built-in logger.

func (*BuiltinLogger) Debug

func (l *BuiltinLogger) Debug(msg string, keyvals ...interface{})

func (*BuiltinLogger) Error

func (l *BuiltinLogger) Error(msg string, keyvals ...interface{})

func (*BuiltinLogger) Info

func (l *BuiltinLogger) Info(msg string, keyvals ...interface{})

type Logger

type Logger interface {
	Debug(msg string, keyvals ...interface{})
	Info(msg string, keyvals ...interface{})
	Error(msg string, keyvals ...interface{})
}

Logger provides the logging interface used within the Large Payload service.

type NoopLogger

type NoopLogger struct {
}

NoopLogger is a logger that emits no logs

func NewNoopLogger

func NewNoopLogger() *NoopLogger

NewNoopLogger creates a new logger that emits no logs.

func (*NoopLogger) Debug

func (l *NoopLogger) Debug(_ string, _ ...interface{})

func (*NoopLogger) Error

func (l *NoopLogger) Error(_ string, _ ...interface{})

func (*NoopLogger) Info

func (l *NoopLogger) Info(_ string, _ ...interface{})

Jump to

Keyboard shortcuts

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