Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msempere/lua-resty-fluentd
Lua fluentd logger for the ngx_lua based on the cosocket API
https://github.com/msempere/lua-resty-fluentd
Last synced: about 1 month ago
JSON representation
Lua fluentd logger for the ngx_lua based on the cosocket API
- Host: GitHub
- URL: https://github.com/msempere/lua-resty-fluentd
- Owner: msempere
- License: mit
- Created: 2016-09-16T19:31:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T12:57:50.000Z (over 8 years ago)
- Last Synced: 2024-08-03T18:12:47.977Z (5 months ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-resty - lua-resty-fluentd
README
# lua-resty-fluentd
Lua fluentd logger for the ngx_lua based on the cosocket API## Synopsis
```lua
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
endlogger:log("a.test.tag", {"type":"event", "timestamp":12345678})
```## Install
```
luarocks install lua-resty-fluentd
```