- Change Summary:
-
* Split up the server_log view function into several utility functions. * Changed the log file iteration code to work as a generator instead of building an array. In ascending order, we yield the log lines as we go. However, we still have to turn this into an in-memory list to reverse it in descending order.
Add a Server Log view for viewing/filtering the log in the admin UI.
Review Request #1026 — Created Sept. 6, 2009 and submitted
Add a Server Log view for viewing/filtering the log in the admin UI. This change introduces a view intended for the admin UI that displays a log file generated by the Python logging code (using the default line format in in djblets.log.DEFAULT_LINE_FORMAT) and allows for filtering by log level and date. It also allows for sorting by date, to see the oldest or most recent items at the top.
Tested each filter and sorting method in combination with the others. Tested with logs containing a variety of log levels, and tested with multi-line log entries.