lua-resty-logger-socket - how it work within log_by_lua*

125 views
Skip to first unread message

Alexander Altshuler

unread,
Aug 22, 2018, 8:56:49 AM8/22/18
to openresty-en
Hi

Lua nginx module docs state that cosocket not available everywhere

How does lua-resty-logger-socket work in such case?
I see it is used in context of log_by_lua*.

Thanks and regards,
Alexander

Kwanhur Huang

unread,
Aug 22, 2018, 9:08:49 AM8/22/18
to openre...@googlegroups.com
hello,

in context of log_by_lua*, it just send msg content into buffer, and then do_flush buffer in context of ngx.timer.at with tcp or udp.




Kwanhur Huang
TL;DR

--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Alexander Altshuler

unread,
Aug 22, 2018, 9:25:01 AM8/22/18
to openresty-en


On Wednesday, August 22, 2018 at 4:08:49 PM UTC+3, Kwanhur Huang wrote:
hello,

in context of log_by_lua*, it just send msg content into buffer, and then do_flush buffer in context of ngx.timer.at with tcp or udp.


Thanks, I know this trick, but didn't find its usage.
Reply all
Reply to author
Forward
0 new messages