logger

package
v0.0.0-...-1f94361 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISO8601layout = "2006-01-02T15:04:05-0700"
)

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(logLevel, logFormat string) (*log.Logger, error)

InitLogger creates a new Logrus logger instance

func JSONLogger

func JSONLogger(logger *log.Logger) gin.HandlerFunc

JSONLogger is a Gin handler function that defines our JSON logging structure

Types

This section is empty.

Jump to

Keyboard shortcuts

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