rpclog

package
v0.0.0-...-b48de1d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: GPL-3.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func Errorf

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

func Fatal

func Fatal(v ...interface{})

func Fatalf

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

func Info

func Info(v ...interface{})

func Infof

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

func InitDefaultZapLog

func InitDefaultZapLog() *zap.Logger

func Panic

func Panic(v ...interface{})

func Panicf

func Panicf(format string, v ...interface{})

func SetLogger

func SetLogger(logger Logger)

func Warn

func Warn(v ...interface{})

func Warnf

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

Types

type Logger

type Logger interface {
	Debug(v ...interface{})
	Debugf(format string, v ...interface{})

	Info(v ...interface{})
	Infof(format string, v ...interface{})

	Warn(v ...interface{})
	Warnf(format string, v ...interface{})

	Error(v ...interface{})
	Errorf(format string, v ...interface{})

	Fatal(v ...interface{})
	Fatalf(format string, v ...interface{})

	Panic(v ...interface{})
	Panicf(format string, v ...interface{})
}

func GetLogger

func GetLogger() Logger

type ZapLogger

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

func (*ZapLogger) Debug

func (z *ZapLogger) Debug(v ...interface{})

func (*ZapLogger) Debugf

func (z *ZapLogger) Debugf(format string, v ...interface{})

func (*ZapLogger) Error

func (z *ZapLogger) Error(v ...interface{})

func (*ZapLogger) Errorf

func (z *ZapLogger) Errorf(format string, v ...interface{})

func (*ZapLogger) Fatal

func (z *ZapLogger) Fatal(v ...interface{})

func (*ZapLogger) Fatalf

func (z *ZapLogger) Fatalf(format string, v ...interface{})

func (*ZapLogger) Info

func (z *ZapLogger) Info(v ...interface{})

func (*ZapLogger) Infof

func (z *ZapLogger) Infof(format string, v ...interface{})

func (*ZapLogger) Panic

func (z *ZapLogger) Panic(v ...interface{})

func (*ZapLogger) Panicf

func (z *ZapLogger) Panicf(format string, v ...interface{})

func (*ZapLogger) Set

func (z *ZapLogger) Set(l *zap.Logger)

func (*ZapLogger) Warn

func (z *ZapLogger) Warn(v ...interface{})

func (*ZapLogger) Warnf

func (z *ZapLogger) Warnf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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