本文整理匯總了PHP中eZLog::setLogrotateFiles方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZLog::setLogrotateFiles方法的具體用法?PHP eZLog::setLogrotateFiles怎麽用?PHP eZLog::setLogrotateFiles使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類eZLog
的用法示例。
在下文中一共展示了eZLog::setLogrotateFiles方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* @param SQLIImportHandlerOptions $options
*/
public function __construct( SQLIImportHandlerOptions $options = null )
{
parent::__construct( $options );
$ftpFolder = 'oscar1';
$modeUAT = false;
$this->startDate = microtime( true );
if ( $this->importINI->hasVariable( 'XMLImportSettings', 'ModeUAT' )
&& $this->importINI->variable( 'XMLImportSettings', 'ModeUAT' ) == 'enabled' )
{
$modeUAT = true;
}
if ( is_object($this->options) )
{
if ( $this->options->hasAttribute( 'reportLevel' ) && is_numeric($reportLevel = $this->options->attribute( 'reportLevel' )) )
XMLImportMonitor::setReportLevel( $reportLevel );
if ( $this->options->hasAttribute( 'ftpFolder' ) && in_array($this->options->attribute( 'ftpFolder' ),array('oscar1','oscar2') ) )
$ftpFolder = $this->options->attribute( 'ftpFolder' );
}
$this->rootImportFolder = $ftpFolder;
// Initialize sqliImportItem Statistics and logs
XMLImportDB::init( $this->importINI );
XMLImportMapping::init( $this->importINI );
eZLog::setMaxLogSize( 2000000 );
eZLog::setLogrotateFiles( 20 );
XMLImportMonitor::setOrigin($ftpFolder);
XMLImportMonitor::setSQLiImportItem( $this->getCurrentSQLiImportItem() );
XMLImportMonitor::pushStatistic( 'start_date', time() );
$this->fileHandler = XMLImportFileHandler::instance($this->importINI, $ftpFolder, $modeUAT);
XMLImportDataHandler::setIni ( $this->importINI );
XMLImportDataHandler::setFileHandler ( $this->fileHandler );
}