Kohana v3.3.0
This commit is contained in:
29
system/classes/Kohana/Log/StdErr.php
Normal file
29
system/classes/Kohana/Log/StdErr.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php defined('SYSPATH') OR die('No direct script access.');
|
||||
/**
|
||||
* STDERR log writer. Writes out messages to STDERR.
|
||||
*
|
||||
* @package Kohana
|
||||
* @category Logging
|
||||
* @author Kohana Team
|
||||
* @copyright (c) 2008-2012 Kohana Team
|
||||
* @license http://kohanaphp.com/license
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
} // End Kohana_Log_StdErr
|
Reference in New Issue
Block a user