log

package
Version: v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(args ...interface{})

Fatal writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Fatalf

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

Fatalf writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Infof

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

Infof writes a log entry.

func Print

func Print(args ...interface{})

Print writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Printf

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

Printf writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Println

func Println(args ...interface{})

Println writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Warnf

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

Warnf writes a log entry.

Types

type StdLogger

type StdLogger interface {
	Fatal(args ...interface{})
	Fatalln(args ...interface{})
	Fatalf(format string, args ...interface{})
	Print(args ...interface{})
	Println(args ...interface{})
	Printf(format string, args ...interface{})
}

StdLogger interface for Standard Logger.

var Logger StdLogger = log.New(os.Stdout, "", log.LstdFlags)

Logger is an optional custom logger.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL