log

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.10.0

func New(logFilePath string) (*zap.SugaredLogger, error)

func SetupLogger

func SetupLogger(level log.Lvl)

Types

type Logger

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

func NewLogger

func NewLogger() Logger

Logger returns a new instance of an lightchain Logger. With() should be called upon the returned instance to set context

Logger is compatible with tmtLog.Logger.

func (Logger) Debug

func (l Logger) Debug(msg string, ctx ...interface{})

Debug proxies everything to the go-ethereum logging facilities

func (Logger) Error

func (l Logger) Error(msg string, ctx ...interface{})

Error proxies everything to the go-ethereum logging facilities

func (Logger) Info

func (l Logger) Info(msg string, ctx ...interface{})

Info proxies everything to the go-ethereum logging facilities

func (Logger) Warn

func (l Logger) Warn(msg string, ctx ...interface{})

Error proxies everything to the go-ethereum logging facilities

func (Logger) With

func (l Logger) With(ctx ...interface{}) tmtLog.Logger

With proxies everything to the go-ethereum logging facilities

Jump to

Keyboard shortcuts

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