此示例演示如何从共享内存读取 Varnish 日志行。
示例 #1 读取 Varnish 共享内存日志
<?php$vl = new VarnishLog;while(1) { $line = $vl->getLine(); printf("%s %d %s", VarnishLog::getTagName($line['tag']), $line['id'], $line['data']);}exit(0);?>