LoggerHelper

Extends \Symfony\Component\Console\Helper\Helper

package

Default

Methods

Initializes the given command to accept logging options.

addOptions(\phpDocumentor\Command\Command $command) : void

This method is intended to be executed once in the Constructor of the given Command as it adds a new option log.

Arguments

Connect the logging events to the output object of Symfony Console.

connectOutputToLogging(\Symfony\Component\Console\Output\OutputInterface $output, \phpDocumentor\Command\Command $command) : void

Arguments

$output

\Symfony\Component\Console\Output\OutputInterface

Returns the canonical name of this helper.

getName() : string
api

Response

string

The canonical name

Logs an event with the output.

logEvent(\Symfony\Component\Console\Output\OutputInterface $output, \phpDocumentor\Event\LogEvent $event, \phpDocumentor\Command\Command $command) : void

This method will also colorize the message based on priority and withhold certain logging in case of verbosity or not.

Arguments

$output

\Symfony\Component\Console\Output\OutputInterface

reconfigureLogger

reconfigureLogger(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output,  $command) 

Arguments

$input

\Symfony\Component\Console\Input\InputInterface

$output

\Symfony\Component\Console\Output\OutputInterface

$command