* @license LGPL http://www.gnu.org/licenses/lgpl.html * @package wb * @subpackage Log */ /** * Basic log driver * * @version 0.1.0 * @package wb * @subpackage Factory * @example test/example/wb.php * @test test/unit/log */ class WBLog_Echo extends WBLog { /** * Write log message * * @param int $level * @param mixed $msg * @return true on success */ protected function write( $level, $msg ) { $str = array( gmdate( parent::$_dateFormat ), $this->_host, $this->_service, $this->_session, $level, $msg ); echo implode( ' ', $str ) . "\n"; flush(); return true; } } ?>