AloFramework Logger
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • AloFramework
    • Log
  • None
  • PHP
  • Psr
    • Log

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 withif ($this->logger) { }blocks.

Psr\Log\AbstractLoggerimplementsPsr\Log\LoggerInterface
Extended byPsr\Log\NullLogger
Namespace:Psr\Log
Located atvendor/psr/log/Psr/Log/NullLogger.php

Methods summary

public null
#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

Returns

null

Methods inherited fromPsr\Log\AbstractLogger

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

Magic methods summary

AloFramework Logger API documentation generated byApiGen 2.8.0