基本的な VarnishLog の使用法
共用メモリから、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);
?>
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google