updated Lua example log to file