mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:50:11 +00:00
Display structured logs in admin
Tries to parse log lines and to display info in a table. Additional JSON data is parsed and displayed clicking on a row. File reading and line parsing is handled in iterators, to avoid to keep too much data in memory. Search and filter should be trivial to add. Log file is read backward to display log events newest first. A "tail" functionality should be easy to implement.
This commit is contained in:
parent
4b3f1cbdb9
commit
9368f5445d
6 changed files with 361 additions and 25 deletions
7
view/js/module/admin/logs/view.js
Normal file
7
view/js/module/admin/logs/view.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
function log_show_details(id) {
|
||||
document
|
||||
.querySelectorAll('[data-id="' + id + '"]')
|
||||
.forEach(elm => {
|
||||
elm.classList.toggle('hidden')
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue