Skip to content

jtarchie/syslog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syslog

Usage

The primary usage the library is with the golang package. The Ruby library was only a proof of concept.

Golang

go get github.com/jtarchie/syslog
import "github.com/jtarchie/syslog/pkg/log"

// ... some code far away ...
log, offset, err := syslog.Parse(line)
if err != nil {
  println("Error", err)
}
println("Message", string(log.Message())) 

About

exploring syslog parsing and processing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •