class Logger extends RoboLogger (View source)

Contains \Drush\Log\Logger.

This is the actual Logger for Drush that is responsible for logging messages.

This logger is designed such that it can be provided to other libraries that log to a Psr\Log\LoggerInterface.

Those who may wish to change the way logging works in Drush should therefore NOT attempt to replace this logger with their own LoggerInterface, as it will not work. It would be okay to extend Drush\Log\Logger, or perhaps we could provide a way to set an output I/O object here, in case output redirection was the only thing that needed to be swapped out.

Methods

__construct(OutputInterface $output)

No description

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

No description

static 
formatSize($size)

No description

Details

__construct(OutputInterface $output)

No description

Parameters

OutputInterface $output

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

No description

Parameters

$level
$message
array $context

Return Value

void

static formatSize($size)

No description

Parameters

$size