xgraylog

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GrayLogConfig map[string]*GrayLogConfigType = nil
View Source
var GrayLogConfigArr []*GrayLogConfigType = nil

Functions

func SetGrayLogConfig

func SetGrayLogConfig(config *gvar.Var)

SetGrayLogConfig 配置 GrayLog 基础信息

func SwitchToGraylog

func SwitchToGraylog(name string, optFunc func(ctx context.Context, m g.Map)) glog.Handler

SwitchToGraylog 转换到 Graylog 日志

Types

type GrayLogConfigType

type GrayLogConfigType struct {
	Host string
	Port int
}

func GetConfig added in v0.5.17

func GetConfig() (conf *GrayLogConfigType, err error)

type JsonOutputsForLogger

type JsonOutputsForLogger struct {
	Time    string `json:"time"`
	Level   string `json:"level"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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