Aerospike::setLogLevel - set the logging threshold of the Aerospike object
public void Aerospike::setLogLevel ( int $log_level )
Aerospike::setLogLevel() declares a logging threshold for the Aerospike C client. This is a static method and the log handler is global across all instances of the Aerospike class.
log_level one of Aerospike::LOG_LEVEL_* values
<?php
$config = array("hosts"=>array(array("addr"=>"localhost", "port"=>3000)));
$db = new Aerospike($config);
if (!$db->isConnected()) {
echo "Aerospike failed to connect[{$db->errorno()}]: {$db->error()}\n";
exit(1);
}
$db->setLogLevel(Aerospike::LOG_LEVEL_DEBUG);
?>