logger

package
v0.0.0-...-20f3002 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOpLogger = writerFunc(func([]byte) (int, error) { return -1, nil })

NoOpLogger returns a new, non-operational logger of io.Writer, it does nothing any form of input.

Functions

func Log

func Log(w io.Writer, format string, a ...interface{})

Log sends a message to the defined logger of io.Writer logger, it's just a help function for internal use but it can be used to a cusotom middleware too.

See AttachLogger too.

func NewDevLogger

func NewDevLogger(omitTimeFor ...string) io.Writer

NewDevLogger returns a new logger of io.Writer which formats its log message input and writes it to the os.Stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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