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

LOGTAILER_HISTORY_LINES should be a paramater manageble from the interface #13

Closed sadikekin closed 4 years ago

sadikekin commented 4 years ago

I think to change the last lines that we want is not very effective in the settings file. WE should be able to change this by using the model parameter.

fireantology commented 4 years ago

Hi, My idea is to have it as input parameter on the form and that could be changed prior to start reading the file for the first time and then keep it read only till you don't close the page.

sadikekin commented 4 years ago

That is really good idea. What should I do if I want to read the whole document. Do you think is it logical to add a parameter to the model?

fireantology commented 4 years ago

I would avoid reading the full document, can be a problem when working on really big log files. I will add a form field with a free number so that you can still go several lines back, I think is flexible enough for most use cases.