Documentation ¶
Index ¶
- func AddWalletIDToContext(ctx context.Context, walletID uuid.UUID)
- func FromContext(ctx context.Context) *zerolog.Logger
- func Logger(ctx context.Context, prefix string) *zerolog.Logger
- func ReportProgress(ctx context.Context, progressDuration time.Duration) chan Progress
- func SetupLogger(ctx context.Context) (context.Context, *zerolog.Logger)
- func SetupLoggerWithLevel(ctx context.Context, level zerolog.Level) (context.Context, *zerolog.Logger)
- func SubmitProgress(ctx context.Context, processed, total int)
- type Progress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWalletIDToContext ¶
AddWalletIDToContext adds wallet id to context
func FromContext ¶ added in v0.5.1
FromContext - retrieves logger from context or gets a new logger if not present
func ReportProgress ¶ added in v0.4.0
ReportProgress - goroutine watching for Progress updates for logging
func SetupLogger ¶
SetupLogger - helper to setup a logger and associate with context
func SetupLoggerWithLevel ¶ added in v0.4.0
func SetupLoggerWithLevel(ctx context.Context, level zerolog.Level) (context.Context, *zerolog.Logger)
SetupLoggerWithLevel - helper to setup a logger and associate with context with a given log level
func SubmitProgress ¶ added in v0.4.0
SubmitProgress - helper to log progress
Types ¶
Click to show internal directories.
Click to hide internal directories.