]> git.mxchange.org Git - friendica.git/commit
Display structured logs in admin
authorfabrixxm <fabrix.xm@gmail.com>
Sat, 27 Mar 2021 17:28:09 +0000 (18:28 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Thu, 19 Aug 2021 12:55:33 +0000 (14:55 +0200)
commit9368f5445dda8b63133c6051aa819f641a0ee61d
treeccd99850fcdbfca41482a4c699f876aaed7c6ac2
parent4b3f1cbdb9082035813a6a303290e22f54b60a91
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.
src/Model/Log/ParsedLogIterator.php [new file with mode: 0644]
src/Module/Admin/Logs/View.php
src/Object/Log/ParsedLog.php [new file with mode: 0644]
src/Util/ReversedFileReader.php [new file with mode: 0644]
view/js/module/admin/logs/view.js [new file with mode: 0644]
view/templates/admin/logs/view.tpl