Hello!
On Mon, Sep 14, 2015 at 9:34 PM, Martin Gee wrote:
> I have a shared library I'm loading using ffi.load
>
> I'd like use the error log from the shared lib. Digging through the NGINX /
> Openresty code I see that a request has a pointer to the logger.
>
> Can openresty pass the request object or logger handle to a shared library
> function?
>
Not directly since NGINX does not have an ABI. You can write a minimal
nginx C module to expose a proper ABI for your shared library (you can
use Lua FFI to glue them together if desired).
Regards,
-agentzh