Access lualatex log with PGFPlotsX

I am trying to use PGFPlotsX together with Plots, and I get the following error:

The latex command `lualatex jl_ODVl4Y.tex` failed

How do I access the lualatex log itself to understand what is going on?

There is probably a temporary folder where that is stored, but you could also save as .tex and compile by hand.

I’ve looked through the source code, and it seems that the luatex error log is actually printed by default. I may have the problem because I make the plots using Pluto.

By the way, how do I actually save the output of PGFPlotsX as tex?

If you are using Plots.jl its savefig("filename.tex")