I'm new to Shelly and just learning the ins and outs of scripting with a Shelly. In the end my aim is to use a script (or scripts) and possibly scheduling together (or not) to have a bulletproof plug that keeps itself healthy (reboots if issues, reports problems if unstable, etc) while also watching and power cycling network gear it deems required (ie, a beefed up Router-Watchdog script). To do this I've poured over the Technical Docs, the example scripts, reddit, this forum, and more, and have been writing and testing on my devices here.
In order to test various use cases I simply block my test plug's ability to connect to wifi through my Unifi controller, effectively kicking it off the network. During this downtime, my test scripts seem to keep running and all seems normal, but upon allowing reconnection and then going into the plug to see what the debug log says, it only has lines starting from reconnection to wifi. Is there access to a log or log output on a shelly device that's kept while powered, but offline as well? What about log output the crosses power cycles? I understand all the resource limitations, but it seems there must be some recorded log output on the device that continues even if wifi disconnected.
Aside from the grander question above, upon doing a Sys.GetConfig I see a couple KV pairs under the debug object - level:2 and file_level:null - can you tell me what these are and their allowed options/values? Or, should we not be touching these values?
Device I'm using is a Shelly Plus Plug US, fw 1.4.4
Thank you.