Overview

Namespaces

  • Kotchasan
    • Cache
    • Database
    • Http
    • Log
    • Orm
  • None
  • PHP
  • Psr
    • Cache
    • Http
      • Message
    • Log

Classes

  • AbstractLogger
  • LogLevel
  • NullLogger

Interfaces

  • LoggerAwareInterface
  • LoggerInterface

Traits

  • LoggerTrait
  • Overview
  • Namespace
  • Class
  • Tree

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 Kotchasan/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
$message
$context
Methods inherited from Psr\Log\AbstractLogger
alert(), critical(), debug(), emergency(), error(), info(), notice(), warning()
Kotchasan API documentation generated by ApiGen