log

package
v3.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Info logs to waring error fatal
	Info func(args ...interface{})

	// Infof logs to  warning error fatal
	Infof func(format string, args ...interface{})

	// Warning logs to warning error fatal.
	Warning func(args ...interface{})

	// Warningf logs to warning error fatal.
	Warningf func(format string, args ...interface{})

	// Error logs to the error fatal
	Error func(args ...interface{})

	// Errorf logs to the error fatal
	Errorf func(format string, args ...interface{})

	// Fatal logs to the fatal
	Fatal func(args ...interface{})

	// Fatalf logs to fatal
	Fatalf func(format string, args ...interface{})
)

Functions

func SetLoger

func SetLoger(target *Logger)

SetLoger set a new loger instance

Types

type Logger

type Logger struct {
	// Info logs to the INFO logs.
	Info  func(args ...interface{})
	Infof func(format string, args ...interface{})

	// Warning logs to the WARNING and INFO logs.
	Warning  func(args ...interface{})
	Warningf func(format string, args ...interface{})

	// Error logs to the ERROR、 WARNING and INFO logs.
	Error  func(args ...interface{})
	Errorf func(format string, args ...interface{})

	// Fatal logs to the FATAL, ERROR, WARNING, and INFO logs.
	Fatal  func(args ...interface{})
	Fatalf func(format string, args ...interface{})
}

Logger implements the Loger interface

Jump to

Keyboard shortcuts

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