<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Thank you Ross,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><div class="gmail_default" style="display:inline"></div><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.6667px">std.log() is the way.</span><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.6667px"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.6667px">Albert</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 24, 2016 at 10:21 PM, Ross Brown <span dir="ltr"><<a href="mailto:ross@trademe.co.nz" target="_blank">ross@trademe.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div lang="EN-NZ" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Have you looked at Varnishlog?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><a href="https://www.varnish-cache.org/docs/trunk/reference/varnishlog.html" target="_blank">https://www.varnish-cache.org/docs/trunk/reference/varnishlog.html</a>
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">To add custom events, you can use the std.log function, which is part of vmod_std.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><a href="https://www.varnish-cache.org/docs/trunk/reference/vmod_std.generated.html?#func-log" target="_blank">https://www.varnish-cache.org/docs/trunk/reference/vmod_std.generated.html?#func-log</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">import std;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">sub vcl_recv {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148);display:inline"></div>std.log (“Requested URL : “ + req.url);<u></u><u></u><p></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">…<u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_-824150865410240476__MailEndCompose"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></a></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> varnish-misc-bounces+ross=<a href="mailto:trademe.co.nz@varnish-cache.org" target="_blank">trademe.co.nz@varnish-cache.org</a> [mailto:<a href="mailto:varnish-misc-bounces%2Bross" target="_blank">varnish-misc-bounces+ross</a>=<a href="mailto:trademe.co.nz@varnish-cache.org" target="_blank">trademe.co.nz@varnish-cache.org</a>]
<b>On Behalf Of </b>Albert Tollkuçi<br>
<b>Sent:</b> Tuesday, 24 May 2016 10:51 PM<br>
<b>To:</b> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<b>Subject:</b> VCL debugging<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div><span class="">
<div>
<p class="MsoNormal"><span style="font-family:Verdana,sans-serif;color:rgb(11,83,148)">Hi everyone,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Verdana,sans-serif;color:rgb(11,83,148)">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.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Verdana,sans-serif;color:rgb(11,83,148)"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Verdana,sans-serif;color:rgb(11,83,148)">Thanx,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Verdana,sans-serif;color:rgb(11,83,148)">Albert<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
</span><div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:'Trebuchet MS',sans-serif;color:rgb(61,133,198)">Web: </span><a href="http://www.tollkuci.com/" target="_blank"><span style="font-family:'Trebuchet MS',sans-serif">http://www.tollkuci.com</span></a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:'Trebuchet MS',sans-serif;color:rgb(61,133,198)">Follow me on: </span><a href="http://www.linkedin.com/in/alberttollkuci" target="_blank"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none"><img border="0" width="24" height="24" 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:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none">LinkedIn</span></a> <a href="https://plus.google.com/+AlbertTollku%C3%A7i/posts" target="_blank"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none"><img border="0" width="24" height="24" 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:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none">Google+</span></a> <a href="https://www.facebook.com/albert.tollkuci" target="_blank"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none"><img border="0" width="24" height="24" 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:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none">Facebook</span></a> <a href="https://twitter.com/AlbertTollkuci" target="_blank"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none"><img border="0" width="24" height="24" 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:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none">Twitter</span></a> <a href="http://careers.stackoverflow.com/atollkuci" target="_blank"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none"><img border="0" width="24" height="24" 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:9pt;font-family:Arial,sans-serif;color:rgb(31,162,225);text-decoration:none">Career
2.0</span></a><u></u><u></u></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-family:'Trebuchet MS',sans-serif;color:rgb(102,102,102)">
<hr size="2" width="100%" noshade style="color:rgb(34,34,34)" align="center">
</span></div>
<p class="MsoNormal"><u></u> </p></div></div></div></div></div></div></blockquote></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><span style="font-size:small;color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif">Web: </span><a href="http://www.tollkuci.com/" style="font-size:small;font-family:'trebuchet ms',sans-serif" target="_blank">http://www.tollkuci.com</a><br></div><div><span style="color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif;font-size:small">Follow me on: </span><a href="http://www.linkedin.com/in/alberttollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2flinkedin_icon.png.jpgx" width="24" style="margin: 2px; padding: 0px; vertical-align: middle;">LinkedIn</a> <a href="https://plus.google.com/+AlbertTollku%C3%A7i/posts" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fgoogleplus-icon.png.jpgx" width="24" style="margin: 2px; padding: 0px; vertical-align: middle;">Google+</a> <a href="https://www.facebook.com/albert.tollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fFacebook_Icon.png.jpgx" width="24" style="margin: 2px; padding: 0px; vertical-align: middle;">Facebook</a> <a href="https://twitter.com/AlbertTollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fTwitterIcon.png.jpgx" width="24" style="margin: 2px; padding: 0px; vertical-align: middle;">Twitter</a> <a href="http://careers.stackoverflow.com/atollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fcareers-icon.png.jpgx" width="24" style="margin: 2px; padding: 0px; vertical-align: middle;">Career 2.0</a></div><font style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"><hr style="color:rgb(34,34,34);font-family:Arial,Verdana,sans-serif;font-size:12px"></font></div><br></div></div>
</div></div>