mflorell wrote:Do you have any size limitations on this? Because on a busy system(especially a dialer that isn't rebooted regularly) the log files could be up to 2GB in size, and accessing them in this way could easily crash a system.
Oh hey Matt, no I have no considered log file sizes...although I do have a log file that is around 1.5GB in size (only the one though!) and working with that file in PHP is a little tedious...so yeah, it's a very good shout. I mean, I would hope that many ViCi administrators are rotating on a daily basis and keeping their systems running optimally. I understand that certain systems don't get rebooted but at least the logs will get rotated. I would encourage log rotation. However, given your feedback, it would make sense to add log levels...such as display the last 100 lines, or 1000 lines or whathaveyou to ease pressure on the server. In PHP we do have the function "filesize()" that will give us a headsup if the file is humungous so can gracefully decline to parse it

I've also had to modify max_memory in PHP for large files (like that biggie quoted earlier) so there is more development to be done here. Cheers for the feedback Matt I really appreciate
