Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
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
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Turn debugging on through your config file.
$Configuration['Debug'] = TRUE;
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.