fireantology / django-logtailer

Allows the viewing of any log file entries in real time directly from the Django admin interface. It allows you to filter on logs with regex and offer also a log clipboard for save desired log lines to the django db.
BSD 3-Clause "New" or "Revised" License
97 stars 30 forks source link

A friendly recommendation with a minor Issue #19

Open peterhorvat opened 2 years ago

peterhorvat commented 2 years ago

Firstly I want to address that this is NOT A ISSUE, just a friendly recommendation.

I am using

I love what you did. Direct access to log files from the Administration saves me so much time. What I would suggest is:

  1. I noticed that the default for "Last lines to read" is 0. It would be great if you could add a functionality where the user would specify the last N number of rows he wants to see. The default could also be equal to the number of lines in the log file and than the user would just specify the first line he wants to see up to the last one. The problem is that most of the time you do not know how long the log file is. That is why the default should be equal to the length of the log file itself.

  2. Also, what will happen if I have a log file with 10 lines and I specify last line to read to 1000 and than I try to debug something. The debugging can produce a 1000 lines easily that is why you should think of something like tail -f <log_file> as a functionality.

I also found an actual issue. When specifying the "Last lines to read" parameter and then start reading. After I press Stop reading, I am unable to change the "Last lines to read" parameter

Other than that the package you created is awesome. Good job