logzap

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerWithZap

func LoggerWithZap(reg *register.Register)

Types

type ZapComponent

type ZapComponent struct {
	DebugLog string `toml:"debug_log" json:"debug_log"`
	InfoLog  string `toml:"info_log" json:"info_log"`
	WarnLog  string `toml:"warn_log" json:"warn_log"`
	ErrLog   string `toml:"err_log" json:"err_log"`

	MaxSize   int  `toml:"max_size" json:"max_size"`
	MaxAge    int  `toml:"max_age" json:"max_age"`
	MaxBackup int  `toml:"max_backup" json:"max_backup"`
	Compress  bool `toml:"compress" json:"compress"`
	Json      bool `toml:"json" json:"json"`
	// contains filtered or unexported fields
}

func (*ZapComponent) Debug

func (z *ZapComponent) Debug(args string)

func (*ZapComponent) Debugf

func (z *ZapComponent) Debugf(format string, args ...interface{})

func (*ZapComponent) Error

func (z *ZapComponent) Error(args string)

func (*ZapComponent) Errorf

func (z *ZapComponent) Errorf(format string, args ...interface{})

func (*ZapComponent) Fatal

func (z *ZapComponent) Fatal(args string)

func (*ZapComponent) Fatalf

func (z *ZapComponent) Fatalf(format string, args ...interface{})

func (*ZapComponent) Info

func (z *ZapComponent) Info(args string)

func (*ZapComponent) Infof

func (z *ZapComponent) Infof(format string, args ...interface{})

func (*ZapComponent) Init

func (z *ZapComponent) Init() error

func (*ZapComponent) Name

func (z *ZapComponent) Name() string

func (*ZapComponent) Ready

func (z *ZapComponent) Ready()

func (*ZapComponent) Warn

func (z *ZapComponent) Warn(args string)

func (*ZapComponent) Warnf

func (z *ZapComponent) Warnf(format string, args ...interface{})

Directories

Path Synopsis
all

Jump to

Keyboard shortcuts

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