You are here

class DevNullLogger in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 api-sdk-php/src/Logger/DevNullLogger.php \Smartling\Logger\DevNullLogger
  2. 8.2 vendor/smartling/api-sdk-php/src/Logger/DevNullLogger.php \Smartling\Logger\DevNullLogger
  3. 8.3 vendor/smartling/api-sdk-php/src/Logger/DevNullLogger.php \Smartling\Logger\DevNullLogger

Hierarchy

Expanded class hierarchy of DevNullLogger

1 file declares its use of DevNullLogger
BaseApiAbstract.php in vendor/smartling/api-sdk-php/src/BaseApiAbstract.php

File

vendor/smartling/api-sdk-php/src/Logger/DevNullLogger.php, line 7

Namespace

Smartling\Logger
View source
class DevNullLogger implements LoggerInterface {

  /**
   * System is unusable.
   *
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function emergency($message, array $context = []) {
  }

  /**
   * Action must be taken immediately.
   *
   * Example: Entire website down, database unavailable, etc. This should
   * trigger the SMS alerts and wake you up.
   *
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function alert($message, array $context = []) {
  }

  /**
   * Critical conditions.
   *
   * Example: Application component unavailable, unexpected exception.
   *
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function critical($message, array $context = []) {
  }

  /**
   * Runtime errors that do not require immediate action but should typically
   * be logged and monitored.
   *
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function error($message, array $context = []) {
  }

  /**
   * Exceptional occurrences that are not errors.
   *
   * Example: Use of deprecated APIs, poor use of an API, undesirable things
   * that are not necessarily wrong.
   *
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function warning($message, array $context = []) {
  }

  /**
   * Normal but significant events.
   *
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function notice($message, array $context = []) {
  }

  /**
   * Interesting events.
   *
   * Example: User logs in, SQL logs.
   *
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function info($message, array $context = []) {
  }

  /**
   * Detailed debug information.
   *
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function debug($message, array $context = []) {
  }

  /**
   * Logs with an arbitrary level.
   *
   * @param mixed $level
   * @param string $message
   * @param array $context
   *
   * @return null
   */
  public function log($level, $message, array $context = []) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DevNullLogger::alert public function Action must be taken immediately. Overrides LoggerInterface::alert
DevNullLogger::critical public function Critical conditions. Overrides LoggerInterface::critical
DevNullLogger::debug public function Detailed debug information. Overrides LoggerInterface::debug
DevNullLogger::emergency public function System is unusable. Overrides LoggerInterface::emergency
DevNullLogger::error public function Runtime errors that do not require immediate action but should typically be logged and monitored. Overrides LoggerInterface::error
DevNullLogger::info public function Interesting events. Overrides LoggerInterface::info
DevNullLogger::log public function Logs with an arbitrary level. Overrides LoggerInterface::log
DevNullLogger::notice public function Normal but significant events. Overrides LoggerInterface::notice
DevNullLogger::warning public function Exceptional occurrences that are not errors. Overrides LoggerInterface::warning