LogToLogServer

package
v0.0.0-...-c448208 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogServer servercfg

日志服务器配置

Functions

func Alert

func Alert(v ...interface{})

级别警报

func ConsoleLog

func ConsoleLog() gin.HandlerFunc

控制台打印log

func Critical

func Critical(v ...interface{})

级别关键

func Debug

func Debug(v ...interface{})

调试信息

func Emergency

func Emergency(v ...interface{})

紧急情况

func Error

func Error(v ...interface{})

错误信息

func Info

func Info(v ...interface{})

一般信息

func InitLogToLogServer

func InitLogToLogServer(R *gin.Engine)

func LogToLogServer

func LogToLogServer() gin.HandlerFunc

日志发送到日志服务器

func Notice

func Notice(v ...interface{})

关键通知

func Run

func Run()

func Warning

func Warning(v ...interface{})

水平误差

Types

type CustomResponseWriter

type CustomResponseWriter struct {
	gin.ResponseWriter
	// contains filtered or unexported fields
}

获取响应体内容

func (CustomResponseWriter) Write

func (w CustomResponseWriter) Write(b []byte) (int, error)

func (CustomResponseWriter) WriteString

func (w CustomResponseWriter) WriteString(s string) (int, error)

type LogType

type LogType struct {
	//项目名称
	ProjectName string `gorm:"index"`
	//应用名称
	App string `gorm:"index"`
	//函数名称
	FuncName string
	//类型
	Type string `gorm:"index"`
	//请求信息
	RequstInfo requst
	//信息
	Info string
	//其他信息
	OtherInfo []otherInfo `gorm:"foreignkey:LogId"`
}

Jump to

Keyboard shortcuts

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