auto log export and file download

I want to extract and save logs automatically.
Even if you search for that script, can’t find it.

Log files can be extracted as text.