コード例 #1
0
function executesugarlog()
{
    //BEGIN COPY SUGARCRM.LOG
    //Copies the Sugarcrm log to our diagnostic directory
    global $cacheDir;
    require_once 'include/SugarLogger/SugarLogger.php';
    $logger = new SugarLogger();
    if (!copy($logger->getLogFileNameWithPath(), $cacheDir . '/' . $logger->getLogFileName())) {
        echo "Couldn't copy sugarcrm.log to cacheDir.<br>";
    }
    //END COPY SUGARCRM.LOG
    //UPDATING PROGRESS BAR
    sodUpdateProgressBar(SUGARLOG_WEIGHT);
}
コード例 #2
0
function executesugarlog()
{
    //BEGIN COPY SUGARCRM.LOG
    //Copies the Sugarcrm log to our diagnostic directory
    global $cacheDir, $mod_strings;
    require_once 'include/SugarLogger/SugarLogger.php';
    $logger = new SugarLogger();
    if (!copy($logger->getLogFileNameWithPath(), $cacheDir . '/' . $logger->getLogFileName())) {
        $data = array($cacheDir);
        echo string_format($mod_strings['LBL_DIAGNOSTICS_ERROR_SUGARLOG'], $data);
    }
    //END COPY SUGARCRM.LOG
    //UPDATING PROGRESS BAR
    sodUpdateProgressBar(SUGARLOG_WEIGHT);
}