logx

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() *zerolog.Event

func Debugf

func Debugf(format string, v ...interface{})

func Err added in v0.4.2

func Err(err error) *zerolog.Event

func Error

func Error() *zerolog.Event

func Errorf

func Errorf(format string, v ...interface{})

func Fatal

func Fatal() *zerolog.Event

func Fatalf

func Fatalf(format string, v ...interface{})

func GinLogger added in v0.4.2

func GinLogger() gin.HandlerFunc

func Info

func Info() *zerolog.Event

func Infof

func Infof(format string, v ...interface{})

func Init

func Init(opfs ...func(opt *Option)) error

func Logger

func Logger() *zerolog.Logger

func Panic

func Panic() *zerolog.Event

func Panicf

func Panicf(format string, v ...interface{})

func Sync

func Sync()

func Warn

func Warn() *zerolog.Event

func Warnf

func Warnf(format string, v ...interface{})

Types

type Option

type Option struct {
	Level   string
	LogPath string
	Stdout  bool
	Caller  bool
	Source  string
}

Jump to

Keyboard shortcuts

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