Log file styling lib - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Log file styling lib (/showthread.php?tid=67119) |
Log file styling lib - zurtri - 01-17-2017 Hi all, I'm seeking a library that provide the CI log files in a view that is styled nicely. Eg ERROR levels log items are red, Debug is blue etc. Anyone know of such a project kicking around? Many thanks RE: Log file styling lib - php_rocs - 01-18-2017 @zurtri I personally don't know of any but I'm sure there are some solutions out there that can get you close. Have you done any research? RE: Log file styling lib - Diederik - 01-18-2017 Why not start such a project yourself? Should be a fun little project ;-) RE: Log file styling lib - zurtri - 01-18-2017 Thats an option @Diederik but I was seeing if there is anything known at the moment. RE: Log file styling lib - skunkbad - 01-18-2017 There'd really be no need for a library, as you can do this in a few lines of code. 1) fetch the contents of the log file 2) loop line by line 3) use regex or strpos to figure out what the line is 4) echo some styled output You could get a lot fancier with the styling, but what you say you want is no library necessary. RE: Log file styling lib - zurtri - 01-22-2017 Thanks Skunkbad. |