getFilePath() public static method

Get the full path to a log file.
public static getFilePath ( string $filename = 'elasticsearch-indexer' ) : string
$filename string
return string
 /**
  * @param int|null $blogId
  */
 public function __construct($blogId = null)
 {
     $this->setBlog($blogId);
     return parent::__construct(['hosts' => Config::getHosts(), 'logging' => true, 'logPath' => Log::getFilePath('elasticsearch')]);
 }