goalogrus

package
v0.0.0-...-de4052b Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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

logger := logrus.New()
// Initialize logger handler using logrus package
service.UseLogger(goalogrus.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 *logrus.Logger) goa.Logger

New wraps a logrus logger into a goa logger.

Types

type Logger

type Logger struct {
	*logrus.Logger
}

Logger is the logrus goa adapter logger.

func (*Logger) Error

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

Error logs errors using logrus.

func (*Logger) Info

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

Info logs messages using logrus.

Jump to

Keyboard shortcuts

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