downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

VarnishAdmin> <Basic VarnishStat usage
[edit] Last updated: Fri, 14 Jun 2013

view this page in

Basic VarnishLog usage

The example illustrates reading varnish log lines from shared memory

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


add a note add a note User Contributed Notes Basic VarnishLog usage - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites