logging

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogBlockError

func LogBlockError(err error)

LogBlockError allows to log the given error as a genesis handling error.

func LogGenesisError

func LogGenesisError(err error)

LogGenesisError allows to log the given error as a genesis handling error.

func LogMsgError

func LogMsgError(err error)

LogMsgError allows to log the given error as a genesis handling error.

func LogTxError

func LogTxError(err error)

LogTxError allows to log the given error as a genesis handling error.

func SetBlockLogger

func SetBlockLogger(logger Logger)

SetBlockLogger sets the method that should be called when a blockHandler returns an error.

func SetGenesisLogger

func SetGenesisLogger(logger Logger)

SetGenesisLogger sets the method that should be called each time a genesisHandler returns an error.

func SetMsgLogger

func SetMsgLogger(logger Logger)

SetMsgLogger sets the method that should be called when a message handler returns an error.

func SetTxLogger

func SetTxLogger(logger Logger)

SetTxLogger sets the method that should be called each time a transaction handler returns an error.

Types

type Logger

type Logger func(err error)

Logger defines a function that takes an error and logs it.

Jump to

Keyboard shortcuts

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