【文件属性】:
文件名称:fluent-logger-golang:Fluentd(Golang)的结构化记录器
文件大小:26KB
文件格式:ZIP
更新时间:2021-05-12 10:36:54
golang fluentd fluentd-logger Go
fluent-logger-golang
Fluentd(Golang)的结构化事件记录器
如何安装
go get github.com/fluent/fluent-logger-golang/fluent
用法
使用go get安装该软件包,并使用import将其包括在您的项目中。
import "github.com/fluent/fluent-logger-golang/fluent"
例子
package main
import (
"github.com/fluent/fluent-logger-golang/fluent"
"fmt"
//"time"
)
func main () {
logger , err := fluent . New (fluent. Config {})
if err != nil {
fmt . Println ( e
【文件预览】:
fluent-logger-golang-master
----.gitignore(31B)
----.travis.yml(250B)
----LICENSE(11KB)
----CHANGELOG.md(2KB)
----README.md(4KB)
----_examples()
--------main.go(529B)
----fluent()
--------fluent_test.go(23KB)
--------version.go(40B)
--------proto_gen_test.go(11KB)
--------proto.go(3KB)
--------proto_gen.go(18KB)
--------test_message_gen.go(3KB)
--------testdata()
--------fluent.go(12KB)
--------test_message_gen_test.go(2KB)
--------test_message.go(157B)