logger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiLogger

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

Logger

func NewApiLogger

func NewApiLogger(cfg *config.Config) *ApiLogger

App Logger constructor

func (*ApiLogger) DPanic

func (l *ApiLogger) DPanic(args ...interface{})

func (*ApiLogger) DPanicf

func (l *ApiLogger) DPanicf(template string, args ...interface{})

func (*ApiLogger) Debug

func (l *ApiLogger) Debug(args ...interface{})

func (*ApiLogger) Debugf

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

func (*ApiLogger) Error

func (l *ApiLogger) Error(args ...interface{})

func (*ApiLogger) Errorf

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

func (*ApiLogger) Fatal

func (l *ApiLogger) Fatal(args ...interface{})

func (*ApiLogger) Fatalf

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

func (*ApiLogger) Info

func (l *ApiLogger) Info(args ...interface{})

func (*ApiLogger) Infof

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

func (*ApiLogger) InitLogger

func (l *ApiLogger) InitLogger()

Init logger

func (*ApiLogger) Panic

func (l *ApiLogger) Panic(args ...interface{})

func (*ApiLogger) Panicf

func (l *ApiLogger) Panicf(template string, args ...interface{})

func (*ApiLogger) Warn

func (l *ApiLogger) Warn(args ...interface{})

func (*ApiLogger) Warnf

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

type Logger

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

Logger methods interface

Jump to

Keyboard shortcuts

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