Find an ajax poll to load the local log file and load it to the page in real time to the example

I am django Framework

after the server operates some scripts, some logs will be output to text files, xxx.log and other contents in real time

so now we need to load these xxx.log contents into the web page through ajax

.

is how much the server writes to the xxx.log file, then the web page loads how much content into the

file in real time.

there is no need to refresh the page to the content

I do not know whether the search keywords are incorrect or other problems. I looked up some materials on the Internet and did not see an example, so I asked the master to throw an example for reference.

May.28,2021

publish log data through an api. It is unrealistic for you to call this log file directly through ajax

.
Menu