Output

Extends \Symfony\Component\Console\Output\ConsoleOutput

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

package

Default

Methods

Returns the object where is being logged to.

getLogger() : \Monolog\Logger

Response

\Monolog\Logger

Sets a logger object to write information to.

setLogger(\Monolog\Logger $logger) 

Arguments

$logger

\Monolog\Logger

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

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

Arguments

$message

array|string

$newline

boolean

$type

integer

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

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

Arguments

$message

string

$operation

callable

$arguments

array

Properties

Object used to log system and debug messages to.

logger : \Monolog\Logger
var

Object used to log system and debug messages to.

Type(s)

\Monolog\Logger