logger

package
v0.0.0-...-768bde1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(l Interface)

Set sets a custom loger which satisfies the interface

Types

type Interface

type Interface interface {
	Print(...interface{})
	Printf(string, ...interface{})
	Println(...interface{})

	Fatal(...interface{})
	Fatalf(string, ...interface{})
	Fatalln(...interface{})

	Panic(...interface{})
	Panicf(string, ...interface{})
	Panicln(...interface{})
}

Interface defines an interface compatible with stdlib log module as there's no standard interface, this is the closest we get, unfortunately.

func Get

func Get() Interface

Get returns the logger, should be used across the codebase to enable developers to plug in their own loggers instead of the stdlib one

Jump to

Keyboard shortcuts

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