Ejemplo n.º 1
0
 /**
  * Inits log object. Checks if logging is enabled for the given client
  *
  * @param Elastica_Client $client
  */
 public function __construct(Elastica_Client $client)
 {
     $this->setLog($client->getConfig('log'));
 }
Ejemplo n.º 2
0
	public function testEmptyLogConfig() {
		$client = new Elastica_Client();
		$this->assertEmpty($client->getConfig('log'));
	}