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

31 lines
679 B
PHP
Raw Normal View History

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