You are here

WatchdogAdapter.php in DB Maintenance 2.0.x

Same filename and directory in other branches
  1. 8 src/Module/Common/WatchdogAdapter.php

WatchdogAdapter class.

File

src/Module/Common/WatchdogAdapter.php
View source
<?php

/**
 * @file
 * WatchdogAdapter class.
 */
namespace Drupal\db_maintenance\Module\Common;

use Psr\Log\LogLevel;

/**
 * WatchdogAdapter class.
 */
class WatchdogAdapter {

  /**
   * Simulates D7 watchdog function.
   */
  public static function watchdog($type, $message, $variables = array(), $severity = LogLevel::NOTICE) {
    \Drupal::logger($type)
      ->log($severity, $message, $variables);
  }

}

Classes

Namesort descending Description
WatchdogAdapter WatchdogAdapter class.