Expose more Log levels to Lua
Currently only Info
and Error
are exposed through print
and error
respectively. It would be very useful to have Warning
, currently there is no way to report non-critical errors from builtin scripts other than print
, which is not as visible in the logs as warnings should be.
Verbose
and Debug
might be handy too. It's common for script authors to add lots of debug output, having a built-in way to disable those would be convenient - currently script authors either put debug logs behind a mod setting, or simply leave them always on, which is not good