Documentation ¶
Index ¶
- func InitLogger(logLevel, format, output string) error
- func InitLoggerWithWriter(logLevel, format string, writer io.Writer) error
- type RelayLogger
- func (rl *RelayLogger) Error(msg string, err error, otherArgs ...any)
- func (rl *RelayLogger) Fatal(msg string, err error, otherArgs ...any)
- func (rl *RelayLogger) TimeTrack(start time.Time, name string, otherArgs ...any)
- func (rl *RelayLogger) WithChain(chainID string) *RelayLogger
- func (rl *RelayLogger) WithChainPair(srcChainID string, dstChainID string) *RelayLogger
- func (rl *RelayLogger) WithChannel(chainID, portID, channelID string) *RelayLogger
- func (rl *RelayLogger) WithChannelPair(srcChainID, srcPortID, srcChannelID string, ...) *RelayLogger
- func (rl *RelayLogger) WithClientPair(srcChainID, srcClientID string, dstChainID, dstClientID string) *RelayLogger
- func (rl *RelayLogger) WithConnectionPair(srcChainID, srcClientID, srcConnectionID string, ...) *RelayLogger
- func (rl *RelayLogger) WithModule(moduleName string) *RelayLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
Types ¶
type RelayLogger ¶
func GetLogger ¶
func GetLogger() *RelayLogger
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
Click to show internal directories.
Click to hide internal directories.