composite.phpt
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PHPT 代码 · 共 21 行
PHPT
21 行
--TEST--Log: Composite Handler--FILE--<?phprequire_once 'Log.php';$conf = array('lineFormat' => '%2$s [%3$s] %4$s');$console1 = &Log::singleton('console', '', 'CONSOLE1', $conf);$console2 = &Log::singleton('console', '', 'CONSOLE2', $conf);$composite = &Log::singleton('composite');$composite->addChild($console1);$composite->addChild($console2);$composite->log('This event will be logged to both handlers.');--EXPECT--CONSOLE1 [info] This event will be logged to both handlers.CONSOLE2 [info] This event will be logged to both handlers.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?