logger

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug()

func Error

func Error(v ...interface{})

Error calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func Errorf

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

Errorf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Errorln

func Errorln(v ...interface{})

Errorln calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

func Fatal

func Fatal(v ...interface{})

Fatal calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func Fatalf

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

Fatalf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Fatalln

func Fatalln(v ...interface{})

Fatalln calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

func Info

func Info(v ...interface{})

Info calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func Infof

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

Infof calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Infoln

func Infoln(v ...interface{})

Infoln calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

func Todo

func Todo(v ...interface{})

Todo calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func Todof

func Todof(format string, v ...interface{})

Todof calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Todoln

func Todoln(v ...interface{})

Todoln calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

func Warn

func Warn(v ...interface{})

Warn calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func Warnf

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

Warnf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Warnln

func Warnln(v ...interface{})

Warnln calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

Types

type Logger

type Logger interface {
	io.WriteCloser

	// Info calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Print.
	Info(v ...interface{})

	// Infof calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Printf.
	Infof(format string, v ...interface{})

	// Infoln calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Println.
	Infoln(v ...interface{})

	// Error calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Print.
	Error(v ...interface{})

	// Errorf calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Printf.
	Errorf(format string, v ...interface{})

	// Errorln calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Println.
	Errorln(v ...interface{})

	// Warn calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Print.
	Warn(v ...interface{})

	// Warnf calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Printf.
	Warnf(format string, v ...interface{})

	// Warnln calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Println.
	Warnln(v ...interface{})

	// Fatal calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Print.
	Fatal(v ...interface{})

	// Fatalf calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Printf.
	Fatalf(format string, v ...interface{})

	// Fatalln calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Println.
	Fatalln(v ...interface{})

	// Todo calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Print.
	Todo(v ...interface{})

	// Todof calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Printf.
	Todof(format string, v ...interface{})

	// Todoln calls Output to print to the standard logger.
	// Arguments are handled in the manner of fmt.Println.
	Todoln(v ...interface{})
}

func NewLogger

func NewLogger(file string) (Logger, error)

Jump to

Keyboard shortcuts

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