in Aliyun/Log/SimpleLogger.php [83:111]
public function __construct($client, $project, $logstore, $topic, $maxCacheLog = null, $maxWaitTime = null, $maxCacheBytes = null)
{
if(NULL === $maxCacheLog || !is_integer($maxCacheLog)){
$this->maxCacheLog = 100;
}else{
$this->maxCacheLog = $maxCacheLog;
}
if(NULL === $maxCacheBytes || !is_integer($maxCacheBytes)){
$this->maxCacheBytes = 256 * 1024;
}else{
$this->maxCacheBytes = $maxCacheBytes;
}
if(NULL === $maxWaitTime || !is_integer($maxWaitTime)){
$this->maxWaitTime = 5;
}else{
$this->maxWaitTime = $maxWaitTime;
}
if($client == null || $project == null || $logstore == null){
throw new Exception('the input parameter is invalid! create SimpleLogger failed!');
}
$this->client = $client;
$this->project = $project;
$this->logstore = $logstore;
$this->topic = $topic;
$this->previousLogTime = time();
$this->cacheBytes = 0;
}