12345678910111213141516171819202122232425262728293031 |
- <?php
- /**
- * STDOUT log writer. Writes out messages to STDOUT.
- *
- * @package KO7
- * @category Logging
- *
- * @copyright (c) 2007-2016 Kohana Team
- * @copyright (c) since 2016 Koseven Team
- * @license https://koseven.dev/LICENSE
- */
- class KO7_Log_StdOut extends Log_Writer {
- /**
- * Writes each of the messages to STDOUT.
- *
- * $writer->write($messages);
- *
- * @param array $messages
- * @return void
- */
- public function write(array $messages)
- {
- foreach ($messages as $message)
- {
- // Writes out each message
- fwrite(STDOUT, $this->format_message($message).PHP_EOL);
- }
- }
- }
|