logger

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug = iota
	LevelInfo
	LevelWarning
	LevelError
	LevelFatal
)

Variables

This section is empty.

Functions

func Start

func Start(c *gin.Context)

Types

type Logger

type Logger struct {
	BeginTime time.Time
	EndTime   time.Duration
	Level     uint
	ColorCode string
	Tag       string
	Message   []*msg
}

func CreateLogger

func CreateLogger() *Logger

func New

func New(c *gin.Context) *Logger

func (*Logger) Err

func (l *Logger) Err(msg ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(msg ...interface{})

func (*Logger) Info

func (l *Logger) Info(msg ...interface{})

func (*Logger) Print

func (l *Logger) Print()

func (*Logger) Warn

func (l *Logger) Warn(msg ...interface{})

Jump to

Keyboard shortcuts

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