php教程

Basic VarnishLog usage

The example illustrates reading varnish log lines from shared memory

Example #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);
?>

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788