logger

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug log debug

func Debugf

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

Debugf log debug

func Error

func Error(args ...interface{})

Error log error

func Errorf

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

Errorf log error

func Fatal

func Fatal(args ...interface{})

Fatal log fatal

func Fatalf

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

Fatalf log fatal

func Info

func Info(args ...interface{})

Info log info

func Infof

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

Infof log info

func SetLogger

func SetLogger(l Logger)

SetLogger will set an logger implements for the sdk

func Warn

func Warn(args ...interface{})

Warn log warn

func Warnf

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

Warnf log warn

Types

type Logger

type Logger interface {
	Errorf(format string, args ...interface{})
	Error(args ...interface{})
	Fatalf(format string, args ...interface{})
	Fatal(args ...interface{})
	Infof(format string, args ...interface{})
	Info(args ...interface{})
	Warnf(format string, args ...interface{})
	Warn(args ...interface{})
	Debugf(format string, args ...interface{})
	Debug(args ...interface{})
}

Logger represent common interface for logging function

Jump to

Keyboard shortcuts

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