logger

package
v0.0.0-...-57fdbbf Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogger

type ILogger interface {
	Log(msg string) error
	Error(msg string) error
	New() (ILogger, error)
}

ILogger ILogger

type Logger

type Logger struct {
	RootPath string
}

Logger Logger

func (*Logger) Error

func (l *Logger) Error(msg string) error

Error Error

func (*Logger) ErrorBasePath

func (l *Logger) ErrorBasePath() string

ErrorBasePath ErrorBasePath

func (*Logger) InfoBasePath

func (l *Logger) InfoBasePath() string

InfoBasePath InfoBasePath

func (*Logger) Log

func (l *Logger) Log(msg string) error

Log Log

func (Logger) New

func (l Logger) New() (ILogger, error)

New New

type ZapLoggerAdapter

type ZapLoggerAdapter struct {
	RootPath string
	Zap      *zap.Logger
	UseSugar bool
}

ZapLoggerAdapter ZapLoggerAdapter

func (ZapLoggerAdapter) Error

func (z ZapLoggerAdapter) Error(msg string) error

Error Error

func (ZapLoggerAdapter) Log

func (z ZapLoggerAdapter) Log(msg string) error

Log Log

func (ZapLoggerAdapter) New

func (z ZapLoggerAdapter) New() (ILogger, error)

New New

Jump to

Keyboard shortcuts

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