SImple Logging for Debugging Purposes
Permalink 1 user found helpful
Hi everyone!
Hopefully a simple question: How do I print/echo output to a log file for debugging purposes? I have a Controller method that I'm trying to test and I can't see what is going on. I just want to output an object/string somewhere for testing.
I should add that I'm not a master PHP programmer so maybe there is a generic PHP thing I'm unaware of, but preliminary Googling isn't helping. I also check the Concrete5 API but didn't see any Helpers.
Many thanks in advance!
Cheers,
Alex
Hopefully a simple question: How do I print/echo output to a log file for debugging purposes? I have a Controller method that I'm trying to test and I can't see what is going on. I just want to output an object/string somewhere for testing.
I should add that I'm not a master PHP programmer so maybe there is a generic PHP thing I'm unaware of, but preliminary Googling isn't helping. I also check the Concrete5 API but didn't see any Helpers.
Many thanks in advance!
Cheers,
Alex
it is just a matter of doing a call to add something to the log,
then going into the Dashboard->Reports->Logs to view the entries.
I think it might be a case of being simpler than you thought!