log

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersistentPreRunEFn

func PersistentPreRunEFn(context *server.Context) func(*cobra.Command, []string) error

Types

type Logger

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

Logger imp logger for tendermint

func NewLogger

func NewLogger(logger *zap.Logger) *Logger

NewLogger create a logger by zap.Logger

func (*Logger) Debug

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

Debug imp for tmlog.Logger

func (*Logger) Error

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

Error imp for tmlog.Logger

func (Logger) Flush

func (l Logger) Flush() error

func (*Logger) Info

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

Info imp for tmlog.Logger

func (*Logger) With

func (l *Logger) With(keyvals ...interface{}) tmlog.Logger

With imp for tmlog.Logger

Jump to

Keyboard shortcuts

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