/rxwandc/system/classes/kohana/log/stderr.php
PHP | 31 lines | 11 code | 1 blank | 19 comment | 0 complexity | dc80155553a5fb16053e7dcd4c211aac MD5 | raw file
Possible License(s): BSD-3-Clause
- <?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)
- {
- // Set the log line format
- $format = 'time --- type: body';
- foreach ($messages as $message)
- {
- // Writes out each message
- fwrite(STDERR, PHP_EOL.strtr($format, $message));
- }
- }
- } // End Kohana_Log_StdErr