log

package
v0.0.0-...-e99903e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenZapLog

func GenZapLog(
	FileName string,
	MaxSize int,
	MaxBackups int,
	MaxAge int,
	Level string,
) (*zap.SugaredLogger, error)

Types

type ConsoleLogger

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

func (*ConsoleLogger) Debugf

func (s *ConsoleLogger) Debugf(format string, params ...interface{})

func (*ConsoleLogger) Errorf

func (s *ConsoleLogger) Errorf(format string, params ...interface{})

func (*ConsoleLogger) Infof

func (s *ConsoleLogger) Infof(format string, params ...interface{})

type CustomLogInterface

type CustomLogInterface interface {
	Debugf(format string, params ...interface{})

	Infof(format string, params ...interface{})

	Errorf(format string, params ...interface{})
}

func GetConsoleLogger

func GetConsoleLogger() CustomLogInterface

Jump to

Keyboard shortcuts

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