Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultLogLevel = "info"
Variables ¶
This section is empty.
Functions ¶
func NewConsoleLogger ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds logger configuration
type DecodedTransactionLogWrapper ¶
type DecodedTransactionLogWrapper struct {
seth.DecodedTransactionLog
}
func (DecodedTransactionLogWrapper) MarshalZerologObject ¶
func (dtw DecodedTransactionLogWrapper) MarshalZerologObject(e *zerolog.Event)
type EventDataWrapper ¶
type EventDataWrapper struct {
EventData map[string]interface{}
}
func (EventDataWrapper) MarshalZerologObject ¶
func (w EventDataWrapper) MarshalZerologObject(e *zerolog.Event)
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures the logger
func WithConsoleWriter ¶
WithConsoleWriter uses the console for pretty printer
Click to show internal directories.
Click to hide internal directories.