Documentation
¶
Index ¶
- Constants
- func LoggerWithAddress(logger *slog.Logger, a types.Address) *slog.Logger
- func SetupDefaultFileLogger(filename string, level slog.Level)
- func SetupDefaultLogger(w io.Writer, level slog.Level)
- func WithChannelIdAttribute(c types.Destination) slog.Attr
- func WithObjectiveIdAttribute(o protocols.ObjectiveId) slog.Attr
Constants ¶
View Source
const ( LOG_DIR = "../artifacts" CHANNEL_ID_LOG_KEY = "channel-id" OBJECTIVE_ID_LOG_KEY = "objective-id" ADDRESS_LOG_KEY = "address" )
View Source
const LevelTrace slog.Level = -5
Variables ¶
This section is empty.
Functions ¶
func LoggerWithAddress ¶
LoggerWithAddress returns a logger with the address attribute set to the given address
func SetupDefaultFileLogger ¶
SetupDefaultFileLogger sets up a default logger that writes to the specified file The file will be created in the artifacts directory
func SetupDefaultLogger ¶
SetupDefaultLogger sets up a default logger that writes to the specified writer
func WithChannelIdAttribute ¶
func WithChannelIdAttribute(c types.Destination) slog.Attr
WithChannelIdAttribute returns a logging attribute for the given channel id
func WithObjectiveIdAttribute ¶
func WithObjectiveIdAttribute(o protocols.ObjectiveId) slog.Attr
WithObjectiveIdAttribute returns a logging attribute for the given objective id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.