Categorygithub.com/relunctance/grafalog
repositorypackage
0.0.92
Repository: https://github.com/relunctance/grafalog.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

release go.dev reference

Grafalog 导入日志小工具

  • 支持日志推送到Mysql
  • 支持自定义解析日志格式
  • 实现接口可支持自定义推送数据源 , 比如Zabbix

Install

go get -u -v github.com/relunctance/grafalog

Start

  • 默认输出到终端
package main

import (
    "os"

    "github.com/relunctance/grafalog"
)

func main() {
    g := grafalog.New("./test.logs")
    err = g.Run() // default output os.Stdout
    if err != nil {
        panic(err)
    }
}

Example 示例

Contribute

  • Please feel free to make suggestions, create issues, fork the repository and send pull requests!