logger

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

func Error

func Error(args ...interface{})

func Errorf

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

func Errorw

func Errorw(msg string, keysAndValues ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Fatalw

func Fatalw(msg string, keysAndValues ...interface{})

func GlobalLogger

func GlobalLogger() *zap.SugaredLogger

func GlobalSync

func GlobalSync() error

func Info

func Info(args ...interface{})

func Infof

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

func Infow

func Infow(msg string, keysAndValues ...interface{})

func InitGlobalLogger

func InitGlobalLogger(isDev bool) error

func Log

func Log(lvl zapcore.Level, args ...interface{})

func Logf

func Logf(lvl zapcore.Level, template string, args ...interface{})

func Logw

func Logw(lvl zapcore.Level, msg string, keysAndValues ...interface{})

func Warn

func Warn(args ...interface{})

func Warnf

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

func Warnw

func Warnw(msg string, keysAndValues ...interface{})

Types

type WailsLogger

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

func NewWailsLogger

func NewWailsLogger(logger *zap.SugaredLogger) *WailsLogger

func (*WailsLogger) Debug

func (wl *WailsLogger) Debug(message string)

func (*WailsLogger) Error

func (wl *WailsLogger) Error(message string)

func (*WailsLogger) Fatal

func (wl *WailsLogger) Fatal(message string)

func (*WailsLogger) Info

func (wl *WailsLogger) Info(message string)

func (*WailsLogger) Print

func (wl *WailsLogger) Print(message string)

func (*WailsLogger) Trace

func (wl *WailsLogger) Trace(message string)

func (*WailsLogger) Warning

func (wl *WailsLogger) Warning(message string)

Jump to

Keyboard shortcuts

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