此示例说明如何从共享内存中读取 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);?>