logger

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	Debug(args ...interface{})

	Infof(fmt string, args ...interface{})
	Warnf(fmt string, args ...interface{})
	Errorf(fmt string, args ...interface{})
	Debugf(fmt string, args ...interface{})
}

Logger is the interface for Logger types

type LoggerWrapper

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

LoggerWrapper is used to wrap raw logger to match AddCallerSkip(1) of logger layer skip

func NewLoggerWrapper

func NewLoggerWrapper(logger Logger) *LoggerWrapper

NewLoggerWrapper

func (*LoggerWrapper) Debug

func (w *LoggerWrapper) Debug(args ...interface{})

func (*LoggerWrapper) Debugf

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

func (*LoggerWrapper) Error

func (w *LoggerWrapper) Error(args ...interface{})

func (*LoggerWrapper) Errorf

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

func (*LoggerWrapper) Info

func (w *LoggerWrapper) Info(args ...interface{})

func (*LoggerWrapper) Infof

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

func (*LoggerWrapper) Warn

func (w *LoggerWrapper) Warn(args ...interface{})

func (*LoggerWrapper) Warnf

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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