PHP Class PHPPM\Debug\BufferingLogger

Author: Nicolas Grekas ([email protected])
Inheritance: extends Psr\Log\AbstractLogger
Exibir arquivo Open project: php-pm/php-pm Class Usage Examples

Public Methods

Method Description
cleanLogs ( )
create ( ) : BufferingLogger | Symfony\Component\Debug\BufferingLogger
log ( $level, $message, array $context = [] )

Method Details

cleanLogs() public method

public cleanLogs ( )

create() public static method

public static create ( ) : BufferingLogger | Symfony\Component\Debug\BufferingLogger
return BufferingLogger | Symfony\Component\Debug\BufferingLogger Check if we are using symfony/debug >= 2.8. In symfony/debug <= 2.7, \Symfony\Component\Debug\BufferingLogger isn't available. Laravel 5.1 depends on symfony/debug 2.7.*, so to support Laravel 5.1 we supply a custom BufferingLogger when Symfony's BufferingLogger isn't available.

log() public method

public log ( $level, $message, array $context = [] )
$context array