logger

package
v0.0.0-...-0c44e78 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT 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
}

func NewApiLogger

func NewApiLogger(cfg *appconfig.App) *ApiLogger

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()

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{})
}

type WrappedWriteSyncer

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

WrappedWriteSyncer is a helper struct implementing zapcore.WriteSyncer to wrap a standard os.Stdout handle, giving control over the WriteSyncer's Sync() function. Sync() results in an error on Windows in combination with os.Stdout ("sync /dev/stdout: The handle is invalid."). WrappedWriteSyncer simply does nothing when Sync() is called by Zap.

func (WrappedWriteSyncer) Sync

func (mws WrappedWriteSyncer) Sync() error

func (WrappedWriteSyncer) Write

func (mws WrappedWriteSyncer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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