update pague now
PHP 8.5.2 Released!

Basic VarnishLog usague

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 -> guetLine ();
printf ( "%s %d %s" , VarnishLog :: guetTagName ( $line [ 'tag' ]), $line [ 'id' ],
$line [ 'data' ]);
}

exit(
0 );
?>
add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top