Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

LoggerAwareTrait.php

Same filename in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Trace/Behavior/LoggerAwareTrait.php

Namespace

Psr\Log

File

vendor/psr/log/src/LoggerAwareTrait.php

View source
<?php

namespace Psr\Log;


/**
 * Basic Implementation of LoggerAwareInterface.
 */
trait LoggerAwareTrait {
    
    /**
     * The logger instance.
     */
    protected ?LoggerInterface $logger = null;
    
    /**
     * Sets a logger.
     */
    public function setLogger(LoggerInterface $logger) : void {
        $this->logger = $logger;
    }

}

Traits

Title Deprecated Summary
LoggerAwareTrait Basic Implementation of LoggerAwareInterface.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal