package
0.0.2-migrate-evm
Repository: https://github.com/scalarorg/scalar-core.git
Documentation: pkg.go.dev

# Functions

Append adds the given keyval pair to the given context.
AppendKeyVals adds the given keyvals to the given context.
Debug logs the given msg at log level DEBUG.
Debugf logs the given formatted msg at log level DEBUG.
Error logs the given msg at log level ERROR.
Errorf logs the given formatted msg at log level ERROR.
FromCtx reads logging keyvals from the given context if there are any and adds them to any logs the returned Logger puts out.
GetKeyVals returns the logging keyvals from the given context if there are any.
Info logs the given msg at log level INFO.
Infof logs the given formatted msg at log level INFO.
Reset returns the logger state to the default nop logger and enables Setup to be called again.
Setup sets the logger that the application should use.
With returns a logger that adds the given keyval pair to any logs it puts out.
WithKeyVals returns a logger that adds the given keyvals to any logs it puts out.

# Structs

Context is a wrapper around context.Context that allows to append keyvals to the context.

# Interfaces

Logger is a simple interface to log at three log levels with additional formatting methods for convenience.