xgraylog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGrayLogConfig

func SetGrayLogConfig(host string, port int)

SetGrayLogConfig 配置 GrayLog 基础信息

func SwitchToGraylog

func SwitchToGraylog(name string) glog.Handler

SwitchToGraylog 转换到 Graylog 日志

Types

type GrayLogConfigType

type GrayLogConfigType struct {
	Host string
	Port int
}
var GrayLogConfig *GrayLogConfigType = nil

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