var $is_joomla = FALSE;
var $is_wordpress = FALSE;
+ /**
+ * Does this CMS / UF support a CMS specific logging mechanism?
+ * @todo - we should think about offering up logging mechanisms in a way that is also extensible by extensions
+ * @var bool
+ */
+ var $supports_UF_Logging = FALSE;
+
/*
* Does the CMS allow CMS forms to be extended by hooks
*/
function outputError($content) {
echo CRM_Utils_System::theme($content);
}
+
+ /**
+ * Log error to CMS
+ */
+ function logger($message) {
+
+ }
}
* Drupal specific stuff goes here
*/
abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base {
+
+ /**
+ * Does this CMS / UF support a CMS specific logging mechanism?
+ * @todo - we should think about offering up logging mechanisms in a way that is also extensible by extensions
+ * @var bool
+ */
+ var $supports_UF_Logging = TRUE;
/**
*
*/
return TRUE;
}
}
+
+
+ /**
+ * Log error to CMS
+ */
+ function logger($message) {
+ if (CRM_Core_Config::singleton()->userFrameworkLogging) {
+ watchdog('civicrm', $message, NULL, WATCHDOG_DEBUG);
+ }
+ }
}