logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

Logger struct

func NewLogger

func NewLogger() *Log

NewLogger

func (*Log) Debugf

func (l *Log) Debugf(template string, args ...interface{})

Debugf logger

func (*Log) Errorf

func (l *Log) Errorf(template string, args ...interface{})

Errorf logger

func (*Log) Fatalf

func (l *Log) Fatalf(template string, args ...interface{})

Fatalf logger

func (*Log) Infof

func (l *Log) Infof(template string, args ...interface{})

Infof logger

func (*Log) InitLogger

func (l *Log) InitLogger()

Intialize the sugar logger

func (*Log) Warnf

func (l *Log) Warnf(template string, args ...interface{})

Warnf logger

type Logger

type Logger interface {
	InitLogger()
	NewContext(context.Context) context.Context
	Infof(template string, args ...interface{})
	Debugf(template string, args ...interface{})
	Warnf(template string, args ...interface{})
	Errorf(template string, args ...interface{})
	Fatalf(template string, args ...interface{})
}

Logger interface methods

Jump to

Keyboard shortcuts

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