log

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: BSD-3-Clause Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug is a convenient scaffold for debug logs

func Debugf

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

Debugf is a convenient scaffold for debug logs

func Error

func Error(args ...interface{})

Error is a convenient scaffold for error logs

func Errorf

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

Errorf is a convenient scaffold for error logs

func Info

func Info(args ...interface{})

Info is a convenient scaffold for information logs

func Infof

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

Infof is a convenient scaffold for information logs

func Name

func Name() string

Name shows the name of active wrapper current.

func Set

func Set(w Wrapper)

Set set the wrapper with a new one

func Warn

func Warn(args ...interface{})

Warn is a convenient scaffold for warning logs

func Warnf

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

Warnf is a convenient scaffold for warning logs

Types

type Wrapper

type Wrapper interface {
	Name() string
	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	Debugf(fmt string, args ...interface{})
	Infof(fmt string, args ...interface{})
	Warnf(fmt string, args ...interface{})
	Errorf(fmt string, args ...interface{})
}

Wrapper defines the interface used in project to make it able to integrate with different loggers

func NewLogrusWrapper

func NewLogrusWrapper() Wrapper

NewLogrusWrapper creates a new wrapper for logrus

Jump to

Keyboard shortcuts

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