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");
Andy
About

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 *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>