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.
redir/includes/kohana/system/classes/Kohana/Log/StdOut.php

31 lines
679 B
PHP
Raw Normal View History

2013-04-13 06:17:56 +00:00
<?php defined('SYSPATH') OR die('No direct script access.');
2011-07-20 12:57:07 +00:00
/**
* STDOUT log writer. Writes out messages to STDOUT.
*
* @package Kohana
* @category Logging
* @author Kohana Team
2013-04-13 06:17:56 +00:00
* @copyright (c) 2008-2012 Kohana Team
2011-07-20 12:57:07 +00:00
* @license http://kohanaphp.com/license
*/
2013-04-13 06:17:56 +00:00
class Kohana_Log_StdOut extends Log_Writer {
2011-07-20 12:57:07 +00:00
/**
* Writes each of the messages to STDOUT.
*
* $writer->write($messages);
*
2013-04-13 06:17:56 +00:00
* @param array $messages
2011-07-20 12:57:07 +00:00
* @return void
*/
public function write(array $messages)
{
foreach ($messages as $message)
{
// Writes out each message
2013-04-13 06:17:56 +00:00
fwrite(STDOUT, $this->format_message($message).PHP_EOL);
2011-07-20 12:57:07 +00:00
}
}
2013-04-13 06:17:56 +00:00
2011-07-20 12:57:07 +00:00
} // End Kohana_Log_StdOut