JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • AbstractLogger
  • LogLevel
  • NullLogger

Interfaces

  • LoggerAwareInterface
  • LoggerInterface

Traits

  • LoggerAwareTrait
  • LoggerTrait

Exceptions

  • InvalidArgumentException
 1 <?php
 2 
 3 namespace Psr\Log;
 4 
 5 /**
 6  * Basic Implementation of LoggerAwareInterface.
 7  */
 8 trait LoggerAwareTrait
 9 {
10     /**
11      * The logger instance.
12      *
13      * @var LoggerInterface
14      */
15     protected $logger;
16 
17     /**
18      * Sets a logger.
19      *
20      * @param LoggerInterface $logger
21      */
22     public function setLogger(LoggerInterface $logger)
23     {
24         $this->logger = $logger;
25     }
26 }
27 
Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.