This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnkohana/system/classes/Kohana/Log/StdOut.php
2014-09-06 23:43:07 +10:00

31 lines
660 B
PHP

<?php defined('SYSPATH') OR die('No direct script access.');
/**
* STDOUT log writer. Writes out messages to STDOUT.
*
* @package Kohana
* @category Logging
* @author Kohana Team
* @copyright (c) 2008-2014 Kohana Team
* @license http://kohanaframework.org/license
*/
class Kohana_Log_StdOut extends Log_Writer {
/**
* Writes each of the messages to STDOUT.
*
* $writer->write($messages);
*
* @param array $messages
* @return void
*/
public function write(array $messages)
{
foreach ($messages as $message)
{
// Writes out each message
fwrite(STDOUT, $this->format_message($message).PHP_EOL);
}
}
}