You are here

public function UpdateLogger::output in Update helper 8

Same name and namespace in other branches
  1. 2.x src/UpdateLogger.php \Drupal\update_helper\UpdateLogger::output()

Output log result, depending on channel used and clean log.

Return value

string Returns HTML string in case of non console execution.

File

src/UpdateLogger.php, line 110

Class

UpdateLogger
Helper service for logging in update hooks provided by update helper.

Namespace

Drupal\update_helper

Code

public function output() {
  if (PHP_SAPI === 'cli') {
    $this
      ->outputCli();
    return '';
  }
  return $this
    ->outputHtml();
}