Documentation ¶
Overview ¶
Package goakit contains an adapter that makes it possible to configure goa so it uses the go-kit log package as logger backend. Usage:
// Initialize logger using github.com/go-kit/kit/log package logger := log.NewLogfmtLogger(w) // Initialize goa service logger using adapter service.WithLogger(goakit.New(logger)) // ... Proceed with configuring and starting the goa service // In handlers: goakit.Context(ctx).Log("foo", "bar")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Context ¶
Context returns the go-kit log context stored in the given context if any, nil otherwise.
func FromContext ¶
func FromContext(ctx *log.Context) goa.LogAdapter
FromContext wraps a go-kit log context into a goa logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.