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/StdErr.php

30 lines
659 B
PHP
Raw Normal View History

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