luci: Index | Files

package teelogger

import ""


Package Files


func Use Uses

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).

Package teelogger imports 2 packages (graph) and is imported by 4 packages. Updated 2020-11-26. Refresh now. Tools for package owners.