There are already views in the administration to display the list of log files and to download individual files. However, to get an overview of whether errors have occurred and if so, how many and where, this is impractical: the files must all be downloaded individually. You then need some kind of tool to analyze the logs. This quickly becomes tedious.
Improvement
There is a new view in the administration that displays the log entries:
- Existing log files serve as the source.
- The content of all log files is displayed at once. This makes it possible to get an overview without having to go through all files individually.
- The content of the log files is not displayed as long text, but in a table: There is one line per log entry.
- There are columns for the different parts of the log entries.
- The table can be sorted and filtered using these columns.
- The table rows are colored according to the severity of the log entry.
- The performance of the table has been optimized for large amounts of data. Even several hundred MB can be displayed.
- However, reading in the log files then takes several seconds, depending on the computer.
Application
View: Administration > Technical administration > Log files > Log entries
The view is updated as soon as the tab becomes visible. There is also a Refresh button in the toolbar that does the same.
In the citizen menu there is a button to write the selected log entry to the console. This is useful for development: Eclipse converts the lines in the stacktrace to links in the code so that the location can be displayed directly in the editor.
Test
Test the view manually.
Automatic tests are too time-consuming, as the number of log entries is too unpredictable for rigid tests.