Modules
Kohana_Log_StdOut
extends Kohana_Log_Writer
STDOUT log writer. Writes out messages to STDOUT.
Class declared in SYSPATH/classes/kohana/log/stdout.php on line 11.
Methods
public write( array $messages ) (defined in Kohana_Log_StdOut)
Writes each of the messages to STDOUT.
$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(STDOUT, 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);
}