logger

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NORMAL = iota
	WARNING
	IMPORTANT
)

Log levels

Variables

This section is empty.

Functions

func GetLogs

func GetLogs(c *gin.Context) (int, interface{})

GetLogs returns the latest 30 logs.

func New

func New(level int, kind string, content string)

New create a new log record in database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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