略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Basic VarnishLog usage

2025-02-27

Basic VarnishLog usage

The example illustrates reading varnish log lines from shared memory

示例 #1 Read varnish shared memory log

<?php

$vl
= new VarnishLog;
while(
1) {
$line = $vl->getLine();
printf("%s %d %s", VarnishLog::getTagName($line['tag']), $line['id'],
$line['data']);
}

exit(
0);
?>
添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/varnish.example.log.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3