Skip to content

Lua fluentd logger for the ngx_lua based on the cosocket API

License

Notifications You must be signed in to change notification settings

msempere/lua-resty-fluentd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-resty-fluentd

Lua fluentd logger for the ngx_lua based on the cosocket API

Synopsis

local fluentd = require "resty.fluentd"
local logger = fluentd:new()

local ok, err = logger:connect("127.0.0.1", 24224)
if not ok then
  ngx.say("failed to connect: ", err)
  return
end

logger:log("a.test.tag", {"type":"event", "timestamp":12345678})

Install

luarocks install lua-resty-fluentd

About

Lua fluentd logger for the ngx_lua based on the cosocket API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages