Skip to content

rs/xlog-nsq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Olivier Poitrey
Nov 6, 2015
95060c8 · Nov 6, 2015

History

2 Commits
Nov 6, 2015
Nov 6, 2015
Nov 6, 2015
Nov 6, 2015
Nov 6, 2015

Repository files navigation

XLog to NSQ Output

godoc license Build Status Coverage

xlog-nsq is an xlog to NSQd output for github.com/rs/xlog.

Install

go get github.com/rs/xlog-nsq

Usage

c := xhandler.Chain{}

nsqCfg := nsq.NewConfig()
nsqTopic := "mytopic"
nsqAddr := "127.0.0.1:4150"
p := nsq.NewProducer(nsqAddr, nsqCfg)
o := xlognsq.New(nsqTopic, p)

logCfg := xlog.Config{
    Output: xlog.NewOutputChannel(o),
}

c.UseC(xlog.NewHandler(logCfg))

Licenses

All source code is licensed under the MIT License.

About

XLog to NSQ Output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages