2011-05-31 06:59:58 +01:00
< ? php
/*
* This file is part of the Symfony package .
*
* ( c ) Fabien Potencier < fabien @ symfony . com >
*
* For the full copyright and license information , please view the LICENSE
* file that was distributed with this source code .
*/
namespace Symfony\Component\HttpKernel\Log ;
2013-01-09 09:17:38 +00:00
use Psr\Log\NullLogger as PsrNullLogger ;
2011-05-31 06:59:58 +01:00
/**
* NullLogger .
*
* @ author Fabien Potencier < fabien @ symfony . com >
2011-07-20 09:14:31 +01:00
*
* @ api
2011-05-31 06:59:58 +01:00
*/
2013-01-30 19:59:27 +00:00
class NullLogger extends PsrNullLogger implements LoggerInterface
2011-05-31 06:59:58 +01:00
{
2013-01-08 22:26:48 +00:00
/**
* @ api
2013-01-09 09:17:38 +00:00
* @ deprecated since 2.2 , to be removed in 3.0 . Use emergency () which is PSR - 3 compatible .
2011-07-20 09:14:31 +01:00
*/
2011-12-13 07:50:54 +00:00
public function emerg ( $message , array $context = array ())
{
2014-11-30 02:15:41 +00:00
trigger_error ( 'The emerg() method of the NullLogger was removed. You should use the new method emergency() instead, which is PSR-3 compatible.' , E_USER_DEPRECATED );
2011-12-13 07:50:54 +00:00
}
2011-05-31 06:59:58 +01:00
2013-01-08 22:26:48 +00:00
/**
* @ api
2013-01-09 09:17:38 +00:00
* @ deprecated since 2.2 , to be removed in 3.0 . Use critical () which is PSR - 3 compatible .
2011-07-20 09:14:31 +01:00
*/
2011-12-13 07:50:54 +00:00
public function crit ( $message , array $context = array ())
{
2014-11-30 02:15:41 +00:00
trigger_error ( 'The crit() method of the NullLogger was removed. You should use the new method critical() instead, which is PSR-3 compatible.' , E_USER_DEPRECATED );
2011-12-13 07:50:54 +00:00
}
2011-05-31 06:59:58 +01:00
2013-01-08 22:26:48 +00:00
/**
* @ api
2013-01-09 09:17:38 +00:00
* @ deprecated since 2.2 , to be removed in 3.0 . Use error () which is PSR - 3 compatible .
2011-07-20 09:14:31 +01:00
*/
2011-12-13 07:50:54 +00:00
public function err ( $message , array $context = array ())
{
2014-11-30 02:15:41 +00:00
trigger_error ( 'The err() method of the NullLogger was removed. You should use the new method error() instead, which is PSR-3 compatible.' , E_USER_DEPRECATED );
2011-12-13 07:50:54 +00:00
}
2011-05-31 06:59:58 +01:00
2013-01-08 22:26:48 +00:00
/**
* @ api
2013-01-09 09:17:38 +00:00
* @ deprecated since 2.2 , to be removed in 3.0 . Use warning () which is PSR - 3 compatible .
2011-07-20 09:14:31 +01:00
*/
2011-12-13 07:50:54 +00:00
public function warn ( $message , array $context = array ())
{
2014-11-30 02:15:41 +00:00
trigger_error ( 'The warn() method of the NullLogger was removed. You should use the new method warning() instead, which is PSR-3 compatible.' , E_USER_DEPRECATED );
2011-12-13 07:50:54 +00:00
}
2011-05-31 06:59:58 +01:00
}