Welcome Guest, Not a member yet? Register   Sign In
[noob] How to view log files

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.

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!

Theme © iAndrew 2016 - Forum software by © MyBB