PHP Class Resque\Logger\Handler\Connector\AbstractConnector

Author: Michael Haynes ([email protected])
Inheritance: implements Resque\Logger\Handler\Connector\ConnectorInterface
Show file Open project: mjphaynes/php-resque

Public Methods

Method Description
processor ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array $args ) : StripProcessor The default processor is the StripFormatProcessor which removes all the console colour formatting from the string
replacePlaceholders ( string $string ) : string Replaces all instances of [%host%, %worker%, %pid%, %date%, %time%] in logger target key so can be unique log per worker

Method Details

processor() public method

The default processor is the StripFormatProcessor which removes all the console colour formatting from the string
public processor ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array $args ) : StripProcessor
$command Symfony\Component\Console\Command\Command
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$args array
return StripProcessor

replacePlaceholders() public method

Replaces all instances of [%host%, %worker%, %pid%, %date%, %time%] in logger target key so can be unique log per worker
public replacePlaceholders ( string $string ) : string
$string string Input string
return string