log

package
v0.0.0-...-85dcd5f Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZapLogger

func NewZapLogger(verbose, jsonLogs bool) (*zap.Logger, error)

Types

type Logger

type Logger interface {
	Debugw(msg string, v ...interface{})
	Infow(msg string, v ...interface{})
	Errorw(msg string, v ...interface{})
}

type NopLogger

type NopLogger struct{}

func NewNopLogger

func NewNopLogger() NopLogger

func (NopLogger) Debugw

func (nop NopLogger) Debugw(_ string, _ ...interface{})

func (NopLogger) Errorw

func (nop NopLogger) Errorw(_ string, _ ...interface{})

func (NopLogger) Infow

func (nop NopLogger) Infow(_ string, _ ...interface{})

Jump to

Keyboard shortcuts

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