log

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(logLevel, format, output string) error

func InitLoggerWithWriter added in v0.5.5

func InitLoggerWithWriter(logLevel, format string, writer io.Writer) error

Types

type RelayLogger

type RelayLogger struct {
	*slog.Logger
}

func GetLogger

func GetLogger() *RelayLogger

func (*RelayLogger) Error

func (rl *RelayLogger) Error(msg string, err error, otherArgs ...any)

func (*RelayLogger) Fatal

func (rl *RelayLogger) Fatal(msg string, err error, otherArgs ...any)

func (*RelayLogger) TimeTrack added in v0.4.8

func (rl *RelayLogger) TimeTrack(start time.Time, name string, otherArgs ...any)

func (*RelayLogger) WithChain added in v0.4.8

func (rl *RelayLogger) WithChain(
	chainID string,
) *RelayLogger

func (*RelayLogger) WithChainPair

func (rl *RelayLogger) WithChainPair(
	srcChainID string,
	dstChainID string,
) *RelayLogger

func (*RelayLogger) WithChannel

func (rl *RelayLogger) WithChannel(
	chainID, portID, channelID string,
) *RelayLogger

func (*RelayLogger) WithChannelPair

func (rl *RelayLogger) WithChannelPair(
	srcChainID, srcPortID, srcChannelID string,
	dstChainID, dstPortID, dstChannelID string,
) *RelayLogger

func (*RelayLogger) WithClientPair

func (rl *RelayLogger) WithClientPair(
	srcChainID, srcClientID string,
	dstChainID, dstClientID string,
) *RelayLogger

func (*RelayLogger) WithConnectionPair

func (rl *RelayLogger) WithConnectionPair(
	srcChainID, srcClientID, srcConnectionID string,
	dstChainID, dstClientID, dstConnectionID string,
) *RelayLogger

func (*RelayLogger) WithModule

func (rl *RelayLogger) WithModule(
	moduleName string,
) *RelayLogger

Jump to

Keyboard shortcuts

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