public static function getFilePath($filename = 'elasticsearch-indexer') { return ESI_PATH . '../../uploads/logs/' . $filename . '.log'; }
/** * @param int|null $blogId */ public function __construct($blogId = null) { $this->setBlog($blogId); return parent::__construct(['hosts' => Config::getHosts(), 'logging' => true, 'logPath' => Log::getFilePath('elasticsearch')]); }