log

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Print  func(v ...interface{})
	Fatal  func(v ...interface{})
	Printf func(format string, v ...interface{})
	Fatalf func(format string, v ...interface{})
)

Functions

func SetLogger

func SetLogger(logger Logger)

SetLogger rewrites the default logger

Types

type Logger

type Logger interface {
	Println(v ...interface{})
	Fatalln(v ...interface{})
	Printf(format string, v ...interface{})
	Fatalf(format string, v ...interface{})
}

Logger represents the log interface

Jump to

Keyboard shortcuts

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