PageRenderTime 152ms CodeModel.GetById 80ms app.highlight 1ms RepoModel.GetById 70ms app.codeStats 0ms

/system/classes/Kohana/Log/StdOut.php

https://bitbucket.org/chrispiechowicz/zepto
PHP | 30 lines | 10 code | 2 blank | 18 comment | 0 complexity | 453bb5f096d040e3962fb6935bb68e86 MD5 | raw file
 1<?php defined('SYSPATH') OR die('No direct script access.');
 2/**
 3 * STDOUT log writer. Writes out messages to STDOUT.
 4 *
 5 * @package    Kohana
 6 * @category   Logging
 7 * @author     Kohana Team
 8 * @copyright  (c) 2008-2012 Kohana Team
 9 * @license    http://kohanaphp.com/license
10 */
11class Kohana_Log_StdOut extends Log_Writer {
12
13	/**
14	 * Writes each of the messages to STDOUT.
15	 *
16	 *     $writer->write($messages);
17	 *
18	 * @param   array   $messages
19	 * @return  void
20	 */
21	public function write(array $messages)
22	{
23		foreach ($messages as $message)
24		{
25			// Writes out each message
26			fwrite(STDOUT, $this->format_message($message).PHP_EOL);
27		}
28	}
29
30} // End Kohana_Log_StdOut