log

package
v2.0.0-...-443af7d Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = &ZapLogger{logger: zap.NewNop().Sugar()}

Functions

func New

func New(logLevel, logDir, logFile string,
	logFlush bool, maxSizeMB, maxAge, verbose int) error

Types

type ZapLogger

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

func (*ZapLogger) Close

func (l *ZapLogger) Close() error

func (*ZapLogger) Crash

func (l *ZapLogger) Crash(args ...any)

func (*ZapLogger) Crashf

func (l *ZapLogger) Crashf(format string, args ...any)

func (*ZapLogger) Critical

func (l *ZapLogger) Critical(format string, args ...any)

func (*ZapLogger) Criticalf

func (l *ZapLogger) Criticalf(format string, args ...any)

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(format string, args ...any)

func (*ZapLogger) Debugf

func (l *ZapLogger) Debugf(format string, args ...any)

func (*ZapLogger) Error

func (l *ZapLogger) Error(format string, args ...any)

func (*ZapLogger) Errorf

func (l *ZapLogger) Errorf(format string, args ...any)

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(args ...any)

func (*ZapLogger) Fatalf

func (l *ZapLogger) Fatalf(format string, args ...any)

func (*ZapLogger) Fatalln

func (l *ZapLogger) Fatalln(args ...any)

func (*ZapLogger) Info

func (l *ZapLogger) Info(format string, args ...any)

func (*ZapLogger) Infof

func (l *ZapLogger) Infof(format string, args ...any)

func (*ZapLogger) Panic

func (l *ZapLogger) Panic(args ...any)

func (*ZapLogger) Panicf

func (l *ZapLogger) Panicf(format string, args ...any)

func (*ZapLogger) Print

func (l *ZapLogger) Print(args ...any)

func (*ZapLogger) Printf

func (l *ZapLogger) Printf(format string, args ...any)

func (*ZapLogger) Println

func (l *ZapLogger) Println(args ...any)

func (*ZapLogger) Sync

func (l *ZapLogger) Sync() error

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(format string, args ...any)

func (*ZapLogger) Warnf

func (l *ZapLogger) Warnf(format string, args ...any)

Jump to

Keyboard shortcuts

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