Symfony\Component\HttpKernel\Log\LoggerInterface::debug PHP Method

debug() public method

public debug ( $message, array $context = [] )
$context array
    function debug($message, array $context = array());

Usage Example

 /**
  * Cache an array of resources into the given cache
  * @param  array $resources
  * @return void
  */
 public function cacheResources(array $resources)
 {
     $cache = new ConfigCache($this->getCacheFileLocation(), $this->debug);
     $content = sprintf('<?php return %s;', var_export($resources, true));
     $cache->write($content);
     $this->logger->debug('Writing translation resources to cache file.');
 }
All Usage Examples Of Symfony\Component\HttpKernel\Log\LoggerInterface::debug