Export logging to Lua