![Build Status](https://camo.githubusercontent.com/b13414313e64791fae65e2431c80e8c099024b356c15f3a10e778bb2f9477498/68747470733a2f2f7472617669732d63692e6f72672f726f626572746b6f77616c736b692f677261796c6f672d676f6c616e672e706e673f6272616e63683d6d6173746572)
graylog-golang is a full implementation for sending messages in GELF (Graylog Extended Log Format) from Go (Golang) to Graylog
package main
import (
"github.com/robertkowalski/graylog-golang"
)
func main() {
g := gelf.New(gelf.Config{})
g.Log(`{
"version": "1.0",
"host": "localhost",
"timestamp": 1356262644,
"facility": "Google Go",
"short_message": "Hello From Golang!"
}`)
}
g := gelf.New(gelf.Config{
GraylogPort: 80,
GraylogHostname: "example.com",
Connection: "wan",
MaxChunkSizeWan: 42,
MaxChunkSizeLan: 1337,
})