Best Practice for Outputting Debug Errors in Vanilla
fraxture
✭
Hi, I'm wondering what is the best way to output debug errors in Vanilla. I've been trying to use the error log. I found a post here that said these lines shoudl be added to the config file:
$Configuration['Garden']['Errors']['LogEnabled'] = TRUE;
$Configuration['Garden']['Errors']['LogFile'] = 'logs/error-log';
$Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';
I did that but am not getting any output. I added a 'log' directory to the root of my vanilla install, and gave it the appropriate permissions and ownership, but no log file is appearing there.
Basically, what I want to do is be able to output debug comments via error_log or some such method...
Tagged:
0
Comments
you can insert lines in code
LogMessage(FILE,LINE,'Object','Method', 'Message');
or use logger plugin.
http://vanillaforums.org/discussion/comment/155625#Comment_155625
Turn debugging on through your config file.
$Configuration['Debug'] = TRUE;