You are here

public static function AdminHelper::addToLog in Search and Replace Scanner 8

Log or show a notice message on the screen.

File

src/AdminHelper.php, line 29

Class

AdminHelper
Shared logic for use in the mdoule.

Namespace

Drupal\scanner

Code

public static function addToLog($message, $DEBUG = FALSE) {
  if ($DEBUG) {
    \Drupal::logger('scanner')
      ->notice($message);
  }
}