logger

package
v0.0.0-...-94f477b Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Red    = "\x1b[31m"
	Green  = "\x1b[32m"
	Cyan   = "\x1b[36m"
	Yellow = "\x1b[33m"
	Reset  = string([]byte{27, 91, 48, 109})
)

Exported colors to use outside the package

Functions

func Debug

func Debug(from, message string, extra ...interface{})

Debug logs a simple debug message without filling the IP field

func DebugC

func DebugC(c *gin.Context, from, message string, extra ...interface{})

DebugC logs a simple debug message and fills the IP field with the gin.Context

func Err

func Err(from, message string, extra ...interface{})

Err logs a simple error without filling the IP field

func ErrC

func ErrC(c *gin.Context, from, message string, extra ...interface{})

ErrC logs a simple error and fills the IP field with the gin.Context

func Fatal

func Fatal(from, message string, extra ...interface{})

Fatal logs an error message and exits the program

func FatalC

func FatalC(c *gin.Context, from, message string, extra ...interface{})

FatalC logs an error message with the IP field and exits the program

func Info

func Info(from, message string, extra ...interface{})

Info logs a simple info message without filling the IP field

func InfoC

func InfoC(c *gin.Context, from, message string, extra ...interface{})

InfoC logs a simple info message and fills the IP field with the gin.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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