logger

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func InitLogger

func InitLogger(verbose bool, writers ...zapcore.WriteSyncer) *Logger

func (*Logger) Debugf

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

func (*Logger) Debugw

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

func (*Logger) Errorf

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

func (*Logger) Fatalf

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

func (*Logger) Fatalw

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

func (*Logger) Infow

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

func (*Logger) Printf

func (l *Logger) Printf(template string, args ...interface{})

func (*Logger) Sync

func (l *Logger) Sync()

func (*Logger) Warnw

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

type LoggerInterface

type LoggerInterface interface {
	Sync()
	Infow(msg string, keysAndValues ...interface{})
	Errorf(template string, args ...interface{})
	Printf(template string, args ...interface{})
	Debugw(msg string, keysAndValues ...interface{})
	Debugf(template string, args ...interface{})
	Warnw(msg string, keysAndValues ...interface{})
	Fatalw(msg string, keysAndValues ...interface{})
	Fatalf(template string, args ...interface{})
}

Jump to

Keyboard shortcuts

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