slog

package
v0.0.0-...-3c05ffe Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...interface{})

Errorf prints ERROR message

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf prints FATAL message

func Infof

func Infof(format string, args ...interface{})

Infof prints INFO message

func NewGlog

func NewGlog() glogLogger

NewGlog returns new glog logger

func SetLogger

func SetLogger(lo Logger)

SetLogger sets logger

func Warnf

func Warnf(format string, args ...interface{})

Warnf prints WARN message

Types

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
}

Logger logging interface

Jump to

Keyboard shortcuts

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