LoggerStub.php

Same filename in other branches
  1. 10 core/modules/system/tests/modules/logger_aware_test/src/LoggerStub.php

Namespace

Drupal\logger_aware_test

File

core/modules/system/tests/modules/logger_aware_test/src/LoggerStub.php

View source
<?php

declare (strict_types=1);
namespace Drupal\logger_aware_test;

use Psr\Log\AbstractLogger;

/**
 * A logger stub.
 */
class LoggerStub extends AbstractLogger {
    
    /**
     * {@inheritdoc}
     */
    public function log($level, $message, array $context = []) : void {
        // Do nothing.
    }

}

Classes

Title Deprecated Summary
LoggerStub A logger stub.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.