goalog15

package
v0.0.0-...-d264910 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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
service.WithLogger(goalog15.New(logger))
// ... Proceed with configuring and starting the goa service

// In handlers:
goalog15.Logger(ctx).Info("foo")

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(ctx context.Context) log15.Logger

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

func New

func New(logger log15.Logger) goa.LogAdapter

New wraps a log15 logger into a goa logger adapter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL