Modules
Kohana_Log_StdErr
extends Kohana_Log_Writer
STDERR log writer. Writes out messages to STDERR.
Class declared in SYSPATH/classes/kohana/log/stderr.php on line 11.
Methods
public write( array $messages ) (defined in Kohana_Log_StdErr)
Writes each of the messages to STDERR.
$writer->write($messages);
Parameters
-
array$messages required - Messages
Return Values
void
Source Code
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));
}
}
final public __toString( ) (defined in Kohana_Log_Writer)
Allows the writer to have a unique key when stored.
echo $writer;
Return Values
string
Source Code
final public function __toString()
{
return spl_object_hash($this);
}