コード例 #1
0
ファイル: Log.php プロジェクト: comdan66/zeusdesign
 /**
  * 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'));
 }
コード例 #2
0
ファイル: LogTest.php プロジェクト: ro-ka/Elastica
	public function testEmptyLogConfig() {
		$client = new Elastica_Client();
		$this->assertEmpty($client->getConfig('log'));
	}