Registry / serialization / rfc5424

rfc5424

JSON →
library0.0.0-20201103192249-000122071b78gogounverified

A library for parsing and serializing RFC-5424 structured syslog messages.

go get code.cloudfoundry.org/rfc5424
INSTALL
IMPORT
SIG · RFC5424
R
rfc5424
serializationgov0.0.0-20201103192249-000122071b78
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rfc5424
code.cloudfoundry.org/rfc5424

Creates and serializes an RFC 5424 syslog message.

package main import ( "fmt" "code.cloudfoundry.org/rfc5424" ) func main() { msg := rfc5424.Message{ Priority: 14, Hostname: "example.com", AppName: "myapp", Message: "Hello, world!", } bytes, _ := msg.MarshalBinary() fmt.Println(string(bytes)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20201103192249-000122071b78latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
rfc5424 — go get rfc5424 · libregistry