We are using Sugar Community Edition version 6.2.
Only MysqlManager.php seems to print to sugarcrm.log:
$GLOBALS['log']->info('Query Execution Time:'.$this->query_time);
My own logs in logic hooks and other files, using the same above syntax, do not print anything to the logfile. No idea why.
Logging is turned on and set to "debug" in the admin panel, and config.php has the right info:
'log_dir' => '.',
'log_file' => 'sugarcrm.log',
'log_memory_usage' => false,
'logger' =>
array (
'level' => 'info',
'file' =>
array (
'ext' => '.log',
'name' => 'sugarcrm',
'dateFormat' => '%c',
'maxSize' => '10MB',
'maxLogs' => 10,
'suffix' => '%m_%Y',
),
),
What could be wrong?
Only MysqlManager.php seems to print to sugarcrm.log:
$GLOBALS['log']->info('Query Execution Time:'.$this->query_time);
My own logs in logic hooks and other files, using the same above syntax, do not print anything to the logfile. No idea why.
Logging is turned on and set to "debug" in the admin panel, and config.php has the right info:
'log_dir' => '.',
'log_file' => 'sugarcrm.log',
'log_memory_usage' => false,
'logger' =>
array (
'level' => 'info',
'file' =>
array (
'ext' => '.log',
'name' => 'sugarcrm',
'dateFormat' => '%c',
'maxSize' => '10MB',
'maxLogs' => 10,
'suffix' => '%m_%Y',
),
),
What could be wrong?
On a unix system, provided the web server runs as the user "nobody"
- chown nobody:nobody /path/to/sugar
- find /path/to/sugar -type d -exec chmod 2775 {} \;
- find /path/to/sugar -type f -exec chmod 664 {} \;
This should get you going.