Create copy_router_logs_to_file.txt

Basically this script will login to your router home page, and look for the logs stored in a textarea.

You must provide the correct url, and username and password for your router.

And then change the html element if it is not in a text area.

Then it will copy all the data inside the text file, and store in the root of where the php file is executed.

Although you can easily change what folder to copy that too.