STDERR log writer. Writes out messages to STDERR.
Class declared in SYSPATH/classes/kohana/log/stderr.php on line 11.
array
$_log_levelsWrites each of the messages to STDERR.
$writer->write($messages);
array
$messages
required - $messagesvoid
public function write(array $messages)
{
// Set the log line format
$format = 'time --- type: body';
foreach ($messages as $message)
{
// Writes out each message
fwrite(STDERR, PHP_EOL.strtr($format, $message));
}
}
Allows the writer to have a unique key when stored.
echo $writer;
string
final public function __toString()
{
return spl_object_hash($this);
}