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

Class NullLogger

This Logger can be used to avoid conditional log calls.

Logging should always be optional, and if no logger is provided to your library creating a NullLogger instance to have something to throw logs at is a good way to avoid littering your code with if ($this->logger) { } blocks.

Psr\Log\AbstractLogger implements Psr\Log\LoggerInterface
Extended by Psr\Log\NullLogger
Namespace: Psr\Log
Located at vendor/psr/log/Psr/Log/NullLogger.php

Methods summary

public
# log( mixed $level, string $message, array $context = array() )

Logs with an arbitrary level.

Logs with an arbitrary level.

Parameters

$level
mixed - $level
$message
string - $message
$context
array - $context

Methods inherited from Psr\Log\AbstractLogger

alert(), critical(), debug(), emergency(), error(), info(), notice(), warning()

Magic methods summary

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.