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

30 lines
678 B
PHP
Raw Normal View History

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