goakit

package
v0.0.0-...-5e8c982 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2016 License: MIT Imports: 2 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger log.Logger) goa.Logger

New wraps a go-kit logger into a goa logger.

Types

type Logger

type Logger struct {
	log.Logger
}

Logger is the go-kit log goa adapter logger.

func (*Logger) Error

func (l *Logger) Error(msg string, data ...interface{})

Error logs error messages using log15.

func (*Logger) Info

func (l *Logger) Info(msg string, data ...interface{})

Info logs informational messages using log15.

Jump to

Keyboard shortcuts

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