log

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewZapLogger

func NewZapLogger(r *rb.Rollbar) *zap.Logger

Types

type AppLogger

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

func (*AppLogger) Debug

func (l *AppLogger) Debug(msg string, fields ...interface{})

func (*AppLogger) Error

func (l *AppLogger) Error(err error, fields ...interface{})

func (*AppLogger) Fatal

func (l *AppLogger) Fatal(err error, fields ...interface{})

func (*AppLogger) Info

func (l *AppLogger) Info(msg string, fields ...interface{})

func (*AppLogger) Panic

func (l *AppLogger) Panic(err error, fields ...interface{})

func (*AppLogger) Warn

func (l *AppLogger) Warn(msg string, fields ...interface{})

type Logger

type Logger interface {
	Debug(msg string, fields ...interface{})
	Info(msg string, fields ...interface{})
	Warn(msg string, fields ...interface{})
	Error(err error, fields ...interface{})
	Panic(err error, fields ...interface{})
	Fatal(err error, fields ...interface{})
}

func NewAppLogger

func NewAppLogger(zap *zap.Logger) Logger

Jump to

Keyboard shortcuts

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