Back to godoc.org

Package teelogger

v0.0.0-...-d4769a7
Latest Go to latest

The latest major version is .

Published: Aug 1, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Index

func Use

func Use(ctx context.Context, factories ...logging.Factory) context.Context

Use adds a tee logger to the context, using the logger factory in the context, as well as the other loggers produced by given factories.

We use factories (instead of logging.Logger instances), since we must be able to produce logging.Logger instances bound to contexts to be able to use logging levels are fields (they are part of the context state).

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier