Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.
   1  <?php
   2  
   3  /**
   4   * SCSSPHP
   5   *
   6   * @copyright 2012-2020 Leaf Corcoran
   7   *
   8   * @license http://opensource.org/licenses/MIT MIT
   9   *
  10   * @link http://scssphp.github.io/scssphp
  11   */
  12  
  13  namespace ScssPhp\ScssPhp\Logger;
  14  
  15  /**
  16   * Interface implemented by loggers for warnings and debug messages.
  17   *
  18   * The official Sass implementation recommends that loggers report the
  19   * messages immediately rather than waiting for the end of the
  20   * compilation, to provide a better debugging experience when the
  21   * compilation does not end (error or infinite loop after the warning
  22   * for instance).
  23   */
  24  interface LoggerInterface
  25  {
  26      /**
  27       * Emits a warning with the given message.
  28       *
  29       * If $deprecation is true, it indicates that this is a deprecation
  30       * warning. Implementations should surface all this information to
  31       * the end user.
  32       *
  33       * @param string $message
  34       * @param bool  $deprecation
  35       *
  36       * @return void
  37       */
  38      public function warn($message, $deprecation = false);
  39  
  40      /**
  41       * Emits a debugging message.
  42       *
  43       * @param string $message
  44       *
  45       * @return void
  46       */
  47      public function debug($message);
  48  }