logging

package
v0.0.0-...-514b6f6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package logging contains logger adapters that make it possible for goa to log messages to various logger backends. Each adapter exists in its own sub-package named after the corresponding logger package.

Once instantiated adapters can be used by setting the goa service logger with WithLogger:

```go

  func main() {
    // ...

    // Setup logger adapter
    logger := log15.New()

    // Create service
    service := goa.New("my service")
    service.WithLogger(goalog15.New(logger))

    // ...
}

```

See http://goa.design/implement/logging/ for details.

Directories

Path Synopsis
Package goakit contains an adapter that makes it possible to configure goa so it uses the go-kit log package as logger backend.
Package goakit contains an adapter that makes it possible to configure goa so it uses the go-kit log package as logger backend.
Package goalog15 contains an adapter that makes it possible to configure goa so it uses log15 as logger backend.
Package goalog15 contains an adapter that makes it possible to configure goa so it uses log15 as logger backend.
Package goalogrus contains an adapter that makes it possible to configure goa so it uses logrus as logger backend.
Package goalogrus contains an adapter that makes it possible to configure goa so it uses logrus as logger backend.

Jump to

Keyboard shortcuts

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