PHP Class Resque\Logger\Handler\Connector\AbstractConnector

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

Méthodes publiques

Méthode 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 méthode

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
Résultat StripProcessor

replacePlaceholders() public méthode

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
Résultat string