logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable() parapet.Middleware

Disable disables log

func Set

func Set(ctx context.Context, name string, value interface{})

Set sets log record field

Types

type Logger

type Logger struct {
	Writer    io.Writer
	OmitEmpty bool
}

Logger middleware

func Stderr

func Stderr() *Logger

Stderr creates new stderr logger

func Stdout

func Stdout() *Logger

Stdout creates new stdout logger

func (Logger) ServeHandler

func (m Logger) ServeHandler(h http.Handler) http.Handler

ServeHandler implements middleware interface

Jump to

Keyboard shortcuts

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