We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * @param ClientBuilder $clientBuilder * @param array $config * @return ClientBuilder */ public static function configureLogging(ClientBuilder $clientBuilder, array $config) { if (Arr::get($config,'logging.enabled')) { try{ // Configure hosts $logger = ClientBuilder::defaultLogger(Arr::get($config,'logging.location'), Arr::get($config,'logging.level','all')); $clientBuilder->setLogger($logger); }catch (\Error $e){ $f = explode('.',Arr::get($config,'logging.location')); $exf = array_pop($f); $logger = new \Monolog\Logger('ES Logs'); $logger->pushHandler(new \Monolog\Handler\StreamHandler(join('.',$f)."-".date('Y-m-d').".".$exf)); $clientBuilder->setLogger($logger); } } return $clientBuilder; }``
/** * @param ClientBuilder $clientBuilder * @param array $config * @return ClientBuilder */ public static function configureLogging(ClientBuilder $clientBuilder, array $config) { if (Arr::get($config,'logging.enabled')) { try{ // Configure hosts $logger = ClientBuilder::defaultLogger(Arr::get($config,'logging.location'), Arr::get($config,'logging.level','all')); $clientBuilder->setLogger($logger); }catch (\Error $e){ $f = explode('.',Arr::get($config,'logging.location')); $exf = array_pop($f); $logger = new \Monolog\Logger('ES Logs'); $logger->pushHandler(new \Monolog\Handler\StreamHandler(join('.',$f)."-".date('Y-m-d').".".$exf)); $clientBuilder->setLogger($logger); } } return $clientBuilder;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
/** * @param ClientBuilder $clientBuilder * @param array $config * @return ClientBuilder */ public static function configureLogging(ClientBuilder $clientBuilder, array $config) { if (Arr::get($config,'logging.enabled')) { try{ // Configure hosts $logger = ClientBuilder::defaultLogger(Arr::get($config,'logging.location'), Arr::get($config,'logging.level','all')); $clientBuilder->setLogger($logger); }catch (\Error $e){ $f = explode('.',Arr::get($config,'logging.location')); $exf = array_pop($f); $logger = new \Monolog\Logger('ES Logs'); $logger->pushHandler(new \Monolog\Handler\StreamHandler(join('.',$f)."-".date('Y-m-d').".".$exf)); $clientBuilder->setLogger($logger); } } return $clientBuilder;
}``The text was updated successfully, but these errors were encountered: