\phpDocumentor\Console\OutputOutput

A custom output class for our Console object that supports writing to the log.

Summary

Methods
Properties
Constants
setLogger()
getLogger()
writeTimedLog()
write()
No public properties found
No constants found
No protected methods found
$logger
N/A
No private methods found
No private properties found
N/A

Properties

$logger

$logger : \Monolog\Logger

Type

\Monolog\Logger — Object used to log system and debug messages to.

Methods

setLogger()

setLogger(\Monolog\Logger  $logger) 

Sets a logger object to write information to.

Parameters

\Monolog\Logger $logger

getLogger()

getLogger() : \Monolog\Logger

Returns the object where is being logged to.

Returns

\Monolog\Logger

writeTimedLog()

writeTimedLog(string  $message, callable  $operation, array  $arguments = array()) : void

Executes a callable piece of code and writes an entry to the log detailing how long it took.

Parameters

string $message
callable $operation
array $arguments

write()

write(array|string  $message, boolean  $newline = false, integer  $type) : void

Write an entry to the console and to the provided logger.

Parameters

array|string $message
boolean $newline
integer $type