Table of Contents Previous Next

Sugar Developer Guide

Version 5.1


Chapter 2 Application Framework : Logger

Logger
The Sugar Logger allows developers and system administrators to log system events and debugging information into a log file. The Sugar code contains log statements at various points which are triggered based on the logging level.
For example, to write a message to the sugarcrm.log file when the log level is set to ‘fatal’, put the following into your code:
$GLOBALS['log']->fatal('my fatal message');
 

Table of Contents Previous Next

Copyright 2004-2008 SugarCRM Inc.
Product License