logs

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// field keys
	FieldModule = "module"
	FieldMethod = "method"
	FieldChain  = "chain"
	FieldNonce  = "nonce"
	FieldTx     = "tx"
	FieldXmsg   = "xmsg"

	// module names
	ModNameInbound  = "inbound"
	ModNameOutbound = "outbound"
	ModNameGasPrice = "gasprice"
	ModNameHeaders  = "headers"
)

A group of predefined field keys and module names for pellclient logs

View Source
const (
	ComplianceLogFile = "compliance.log"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Std        zerolog.Logger
	Compliance zerolog.Logger
}

Logger contains the base loggers

func DefaultLogger

func DefaultLogger() Logger

DefaultLoggers creates default base loggers for tests

func InitLogger

func InitLogger(cfg config.Config) (Logger, error)

InitLogger initializes the base loggers

Jump to

Keyboard shortcuts

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