Golang package for sending logs to the OVH logs PAAS
It's completely API compatible with the standard library logger.
It implements GELF format (TCP or UDP, compressed or not).
Example:
package main
import (
ovhlogs "github.com/toorop/go-ovh-logs"
)
func main() {
OVHLogger := ovhlogs.New("STREAM_TOKEN", ovhlogs.GelfUDP, ovhlogs.CompressNone, false)
OVHLogger.Print("Hello World !")
}
See Examples folder for more... examples ;)
If this project is useful for you, please consider making a donation.
Address: 1JvMRNRxiTiN9H7LyZTq4yzR7ez86M7ND6
Address: 0xA84684B45969efbD54fd25A1e2eD8C7790A0C497