PHP Class Joli\JoliCi\LoggerCallback

ファイルを表示 Open project: jolicode/jolici Class Usage Examples

Public Methods

Method Description
__construct ( Psr\Log\LoggerInterface $logger )
clearStatic ( ) Clear static log buffer
getBuildCallback ( ) : callable Get the build log callback when building / pulling an image
getRunStderrCallback ( ) : callable Get the run stderr callback for docker
getRunStdoutCallback ( ) : callable Get the run stdout callback for docker

Private Methods

Method Description
buildCallback ( Docker\API\Model\BuildInfo $output ) The build callback when creating a image, useful to see what happens during building
runStderrCallback ( string $output ) Run callback to catch stderr logs of test running
runStdoutCallback ( string $output ) Run callback to catch stdout logs of test running

Method Details

__construct() public method

public __construct ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface

clearStatic() public method

Clear static log buffer
public clearStatic ( )

getBuildCallback() public method

Get the build log callback when building / pulling an image
public getBuildCallback ( ) : callable
return callable

getRunStderrCallback() public method

Get the run stderr callback for docker
public getRunStderrCallback ( ) : callable
return callable

getRunStdoutCallback() public method

Get the run stdout callback for docker
public getRunStdoutCallback ( ) : callable
return callable