Wallmander\ElasticsearchIndexer\Model\Log::getFilePath PHP Метод

getFilePath() публичный статический Метод

Get the full path to a log file.
public static getFilePath ( string $filename = 'elasticsearch-indexer' ) : string
$filename string
Результат string
    public static function getFilePath($filename = 'elasticsearch-indexer')
    {
        return ESI_PATH . '../../uploads/logs/' . $filename . '.log';
    }

Usage Example

Пример #1
0
 /**
  * @param int|null $blogId
  */
 public function __construct($blogId = null)
 {
     $this->setBlog($blogId);
     return parent::__construct(['hosts' => Config::getHosts(), 'logging' => true, 'logPath' => Log::getFilePath('elasticsearch')]);
 }