Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nextronsystems/simplesyslog
Simple SYSLOG client in Go
https://github.com/nextronsystems/simplesyslog
Last synced: 19 days ago
JSON representation
Simple SYSLOG client in Go
- Host: GitHub
- URL: https://github.com/nextronsystems/simplesyslog
- Owner: NextronSystems
- License: apache-2.0
- Created: 2016-03-24T23:02:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T13:14:22.000Z (7 months ago)
- Last Synced: 2024-12-09T00:06:18.091Z (28 days ago)
- Language: Go
- Size: 22.5 KB
- Stars: 22
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simplesyslog
[![Build Status](https://travis-ci.org/NextronSystems/simplesyslog.svg?branch=master)](https://travis-ci.org/NextronSystems/simplesyslog)
Simple SYSLOG client in Go
## Installation
`go get github.com/NextronSystems/simplesyslog`
## Example Usage
```go
import (
syslog "github.com/NextronSystems/simplesyslog"
)const SyslogServer = ":"
func main() {
client, err := syslog.NewClient(syslog.ConnectionUDP, SyslogServer)
if err != nil {
...
}
defer client.Close()
if err := client.Send("foo bar baz", syslog.LOG_LOCAL0|syslog.LOG_NOTICE); err != nil {
...
}
}
```