Scroll to the bottom of log files in web pages

We use supervisord on our systems, which has a handy browser based 'tail -f' feature. The problem is that the end of the log file appears off the bottom of the screen, and the browser won't scroll to the bottom automatically. This bookmarklet will keep the end of the page in view.

javascript:scroll=function(){setTimeout(function(){window.scrollTo(0,document.body.scrollHeight);scroll();},100);};scroll();

Comments

Gill said…
Great Article. Your writing skill is magnificent as ever
Jordan said…
It’s always useful to read content from other authors, Thanks
Jasiah said…
Its like you read my mind! This is magnificent blog. A great read
Reyna said…
Good work you show, Fantastic it is Good job
Kyla said…
Easily, the article is actually the best topic on this issue.
Shah said…
Thanks for the beautiful info you made. Great job. Thankyou

Popular posts from this blog

MinHash for dummies

Authenticating via Kerberos with Keycloak and Windows 2008 Active Directory

Fixing OpenVPN "Authenticate/Decrypt packet error: cipher final failed"