stdoutappender.class.php

来自「一个用PHP编写的」· PHP 代码 · 共 36 行

PHP
36
字号
<?php    lt_include(PLOG_CLASS_PATH."class/logger/appender/appender.class.php");    /**     * StdoutAppender logs a message directly to the requesting client.	 *	 * \ingroup logger     */    class StdoutAppender extends Appender    {        /**         * Create a new FileAppender instance.         *         * @param Layout A Layout instance.         *         * @access public         * @since  1.0         */        function StdoutAppender($layout, $properties)        {            parent::Appender($layout, $properties);        }        /**         * Write a message directly to the client, including the new line.		 *		 * @param message The message that we're going to write         */        function write ($message)        {            echo $message . "<br/>\n";        }    }?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?