Redirecting debugging output

Hi,

Is there a way to direct output from my scripts such that instead of going to LuaUPnP.log they go to an altnernate file?

Thanks,

Alex

You should be able to write to your own file using Lua’s regular [tt]io[/tt] package

See Lua 5.1 Reference Manual

If you write them to the same directory that [tt]LuaUPnP.log[/tt] is written to, then it will be rotated along with the other files (and will likely be kept in memory, or USB memory if you’ve configured that, instead of burning up the internal Flash memory module.

Great just what I need - thanks for that guessed :slight_smile: