goa

package
v0.0.0-...-91eccfc Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context) hatchet.Logger

Extract the underlying Logger from a Goa context. If the logger is an Adapter then the Adapter's wrapped logger is returned. Otherwise a null logger is returned.

Types

type Adapter

type Adapter struct {
	hatchet.Logger
	// contains filtered or unexported fields
}

Adapter wraps a Logger with Goa Log Adapter functionality.

func Adapt

func Adapt(logger hatchet.Logger) *Adapter

Adapt creates a Goa log adapter which logs to the provided logger.

func (*Adapter) Error

func (a *Adapter) Error(msg string, keyvals ...interface{})

Error logs a message at error level.

func (*Adapter) Info

func (a *Adapter) Info(msg string, keyvals ...interface{})

Info logs a message at info level.

func (*Adapter) New

func (a *Adapter) New(keyvals ...interface{}) goa.LogAdapter

New creates an Adapter with additional log context.

Jump to

Keyboard shortcuts

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