Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toorop/go-ovh-logs
Golang package for OVH logs PAAS
https://github.com/toorop/go-ovh-logs
gelf golang golang-package graylog ovh ovh-logs
Last synced: about 6 hours ago
JSON representation
Golang package for OVH logs PAAS
- Host: GitHub
- URL: https://github.com/toorop/go-ovh-logs
- Owner: toorop
- License: mit
- Created: 2018-01-20T15:03:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-02T07:13:18.000Z (about 6 years ago)
- Last Synced: 2024-06-20T14:45:17.074Z (5 months ago)
- Topics: gelf, golang, golang-package, graylog, ovh, ovh-logs
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ovh-logs
Golang package for sending logs to the [OVH logs PAAS](https://www.ovh.com/fr/data-platforms/logs/)[![GoDoc](https://godoc.org/github.com/toorop/go-ovh-logs?status.svg)](https://godoc.org/github.com/toorop/go-ovh-logs)
It's completely API compatible with the standard library logger.
It implements GELF format (TCP or UDP, compressed or not).
Example:
```go
package mainimport (
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](examples) for more... examples ;)## Support this project & open-source
If this project is useful for you, please consider making a donation.### Bitcoin
Address: 1JvMRNRxiTiN9H7LyZTq4yzR7ez86M7ND6
![Bitcoin QR code](https://raw.githubusercontent.com/toorop/wallets/master/btc.png)
### Ethereum
Address: 0xA84684B45969efbD54fd25A1e2eD8C7790A0C497
![ETH QR code](https://raw.githubusercontent.com/toorop/wallets/master/eth.png)