Overview

Namespaces

  • GAubry
    • ErrorHandler
    • Helpers
    • Logger
    • Shell
  • Himedia
    • Padocc
      • DB
      • Minifier
      • Numbering
      • Properties
      • Task
        • Base
        • Extended
  • None
  • Psr
    • Log

Classes

  • AbstractLogger
  • LogLevel
  • NullLogger

Interfaces

  • LoggerAwareInterface
  • LoggerInterface

Traits

  • LoggerAwareTrait
  • LoggerTrait

Exceptions

  • InvalidArgumentException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

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 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 from Psr\Log\AbstractLogger
alert(), critical(), debug(), emergency(), error(), info(), notice(), warning()
Platform for Automatized Deployments with pOwerful Concise Configuration API documentation generated by ApiGen 2.8.0