CodeIgniter Forums
[noob] How to view log files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [noob] How to view log files (/showthread.php?tid=28689)



[noob] How to view log files - El Forum - 03-18-2010

[eluser]Unknown[/eluser]
I have inherited a basket case that was written using CI. I'm trying to come up to speed on CI as quickly as possible. Currently struggling with a timezone issue and trying to log activity.

I have inserted the log_message() and the logs are being written to the ci_system/Logs folder into files named Log-YYYY-MM-DD.php If I ftp the log files down and open them with a text editor they are all but unusable <unreadable no whitespace, no newlines>.

How am I supposed to view the log files?

[Edit more info]
Since they are .php files and there is a BASEURL check at the beginning, my assumption is there is a way to access them through the CI framework using some URL. I can't find any references in the wiki, the user guide or the forums.

Thanks in advance.


[noob] How to view log files - El Forum - 03-18-2010

[eluser]Unknown[/eluser]
Answered my own question. Even though the file type is.php, the only line of php code in the file is the check for BASEURL. It appears to be just a security precaution against random browsing.

It would have been helpful if anyone had replied WTF!
PPMI