goa: github.com/goadesign/goa/logging/log15 Index | Files

package goalog15

import "github.com/goadesign/goa/logging/log15"

Package goalog15 contains an adapter that makes it possible to configure goa so it uses log15 as logger backend. Usage:

logger := log15.New()
// ... Initialize logger handler using log15 package
// ... Proceed with configuring and starting the goa service

// In handlers:


Package Files


func Logger Uses

func Logger(ctx context.Context) log15.Logger

Logger returns the log15 logger stored in the given context if any, nil otherwise.

func New Uses

func New(logger log15.Logger) goa.LogAdapter

New wraps a log15 logger into a goa logger adapter.

Package goalog15 imports 3 packages (graph) and is imported by 2 packages. Updated 2017-04-13. Refresh now. Tools for package owners.