<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Have you looked at Varnishlog?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://www.varnish-cache.org/docs/trunk/reference/varnishlog.html">https://www.varnish-cache.org/docs/trunk/reference/varnishlog.html</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">To add custom events, you can use the std.log function, which is part of vmod_std.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://www.varnish-cache.org/docs/trunk/reference/vmod_std.generated.html?#func-log">https://www.varnish-cache.org/docs/trunk/reference/vmod_std.generated.html?#func-log</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">import std;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">sub vcl_recv {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">   std.log (“Requested URL : “ + req.url);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">…<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></a></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> varnish-misc-bounces+ross=trademe.co.nz@varnish-cache.org [mailto:varnish-misc-bounces+ross=trademe.co.nz@varnish-cache.org]
<b>On Behalf Of </b>Albert Tollkuçi<br>
<b>Sent:</b> Tuesday, 24 May 2016 10:51 PM<br>
<b>To:</b> varnish-misc@varnish-cache.org<br>
<b>Subject:</b> VCL debugging<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif;color:#0B5394">Hi everyone,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif;color:#0B5394">is there a way to log some info from vcl config file? It would help a lot to log some info on a file to check if the configuration is correct or not.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif;color:#0B5394"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif;color:#0B5394">Thanx,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif;color:#0B5394">Albert<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#3D85C6">Web: </span><a href="http://www.tollkuci.com/" target="_blank"><span style="font-family:"Trebuchet MS",sans-serif">http://www.tollkuci.com</span></a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#3D85C6">Follow me on: </span><a href="http://www.linkedin.com/in/alberttollkuci" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none"><img border="0" width="24" height="24" id="_x0000_i1035" src="http://www.tollkuci.com/blog/IMAGES/2014/02/linkedin_icon.png.jpgx" alt="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2flinkedin_icon.png.jpgx"></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none">LinkedIn</span></a> <a href="https://plus.google.com/+AlbertTollku%C3%A7i/posts" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none"><img border="0" width="24" height="24" id="_x0000_i1034" src="http://www.tollkuci.com/blog/IMAGES/2014/02/googleplus-icon.png.jpgx" alt="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fgoogleplus-icon.png.jpgx"></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none">Google+</span></a> <a href="https://www.facebook.com/albert.tollkuci" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none"><img border="0" width="24" height="24" id="_x0000_i1033" src="http://www.tollkuci.com/blog/IMAGES/2014/02/Facebook_Icon.png.jpgx" alt="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fFacebook_Icon.png.jpgx"></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none">Facebook</span></a> <a href="https://twitter.com/AlbertTollkuci" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none"><img border="0" width="24" height="24" id="_x0000_i1032" src="http://www.tollkuci.com/blog/IMAGES/2014/02/TwitterIcon.png.jpgx" alt="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fTwitterIcon.png.jpgx"></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none">Twitter</span></a> <a href="http://careers.stackoverflow.com/atollkuci" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none"><img border="0" width="24" height="24" id="_x0000_i1031" src="http://www.tollkuci.com/blog/IMAGES/2014/02/careers-icon.png.jpgx" alt="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fcareers-icon.png.jpgx"></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1FA2E1;text-decoration:none">Career
 2.0</span></a><o:p></o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-family:"Trebuchet MS",sans-serif;color:#666666">
<hr size="2" width="100%" noshade="" style="color:#222222" align="center">
</span></div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#666666">Imagination is more important than knowledge<br>
<i>Albert Einstein</i><br>
<br>
The three chief virtues of a programmer are: Laziness, Impatience and Hubris<br>
<i>Larry Wall</i><br>
<br>
Men are basically smart or dumb and lazy or ambitious. The dumb and ambitious ones are dangerous and I get rid of them. The dumb and lazy ones I give mundane duties. The smart ambitious ones I put on my staff. The smart and lazy ones I make my commanders<br>
<i>Erwin Rommel</i></span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#666666">The best programmers are not marginally better than merely good ones.  They are an order-of-magnitude better, measured by whatever standard: conceptual creativity,
 speed, ingenuity of design, or problem-solving ability.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#666666">Randall E. Stross</span></i><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#666666"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#666666"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#666666">Measuring programming progress by lines of code is like measuring aircraft building progress by weight.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#666666">Bill Gates</span></i><span style="font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#666666"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>