logger

package
v0.0.0-...-c46e59b Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadgerLogger

func BadgerLogger() badger.Logger

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}
var L *Logger

func New

func New(json bool) *Logger

func (*Logger) Debug

func (l *Logger) Debug(msg string, fields map[string]interface{})

func (*Logger) Error

func (l *Logger) Error(msg string, err error, fields map[string]interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, fields map[string]interface{})

func (*Logger) HTTPError

func (l *Logger) HTTPError(w http.ResponseWriter, message string, err error, status int)

func (*Logger) Info

func (l *Logger) Info(msg string, fields map[string]interface{})

func (*Logger) Metrics

func (l *Logger) Metrics() *metrics.Metrics

func (*Logger) Warn

func (l *Logger) Warn(msg string, fields map[string]interface{})

func (*Logger) Zap

func (l *Logger) Zap() *zap.Logger

Jump to

Keyboard shortcuts

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