fiberlog

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FiberLogger

type FiberLogger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

FiberLogger fiber日志

func NewLogger

func NewLogger(filename string) *FiberLogger

NewLogger 创建日志

func SetLogger added in v1.4.2

func SetLogger(filename string) *FiberLogger

SetLogger 创建并设置日志

func WrapLogger

func WrapLogger(l *zap.SugaredLogger) *FiberLogger

WrapLogger 封装日志

func (*FiberLogger) SetLevel

func (l *FiberLogger) SetLevel(level log.Level)

SetLevel implement log.ControlLogger

func (*FiberLogger) SetOutput

func (l *FiberLogger) SetOutput(_ io.Writer)

SetOutput implement log.ControlLogger

func (*FiberLogger) Trace

func (l *FiberLogger) Trace(v ...interface{})

func (*FiberLogger) Tracef

func (l *FiberLogger) Tracef(format string, v ...interface{})

func (*FiberLogger) Tracew

func (l *FiberLogger) Tracew(msg string, keysAndValues ...interface{})

func (*FiberLogger) WithContext

func (l *FiberLogger) WithContext(_ context.Context) log.CommonLogger

WithContext implement log.AllLogger

Jump to

Keyboard shortcuts

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