logger

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: MIT Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOp = Func(func(format string, args ...interface{}) {})

NoOp logger

View Source
var Std = Func(func(format string, args ...interface{}) { log.Printf(format, args...) })

Std logger

Functions

This section is empty.

Types

type Func

type Func func(format string, args ...interface{})

Func type is an adapter to allow the use of ordinary functions as Logger.

func (Func) Logf

func (f Func) Logf(format string, args ...interface{})

Logf calls f(id)

type L

type L interface {
	Logf(format string, args ...interface{})
}

L defines minimal interface used to log things

Jump to

Keyboard shortcuts

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