goalog15

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: 2 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.UseLogger(goalog15.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 log15.Logger) goa.Logger

New wraps a log15 logger into a goa logger.

Types

type Logger

type Logger struct {
	log15.Logger
}

Logger is the log15 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