Logging custom error messages in SugarCRM

Depending on what your Log Level is set to in the system settings you can log errors to the sugarcrm.log located in the root folder with the following code snippets

$GLOBALS['log']->fatal("My fatal message");

$GLOBALS['log']->debug("My debug message");

$GLOBALS['log']->info("My log message");

Software Developer from Falkirk, Central Scotland.

Posted in SugarCRM development development hints and tips

Leave a Reply

Your email address will not be published. Required fields are marked *