VCL debugging

Albert Tollkuçi albert.tollkuci at gmail.com
Wed May 25 17:39:50 CEST 2016


Thank you Ross,
​
std.log() is the way.

Albert

On Tue, May 24, 2016 at 10:21 PM, Ross Brown <ross at trademe.co.nz> wrote:

> Have you looked at Varnishlog?
>
>
>
> https://www.varnish-cache.org/docs/trunk/reference/varnishlog.html
>
>
>
> To add custom events, you can use the std.log function, which is part of
> vmod_std.
>
>
>
>
> https://www.varnish-cache.org/docs/trunk/reference/vmod_std.generated.html?#func-log
>
>
>
> import std;
>
>
>
> sub vcl_recv {
>
>
> ​​
> std.log (“Requested URL : “ + req.url);
>
>>
>
>
>
>
>
>
> *From:* varnish-misc-bounces+ross=trademe.co.nz at varnish-cache.org [mailto:
> varnish-misc-bounces+ross=trademe.co.nz at varnish-cache.org] *On Behalf Of *Albert
> Tollkuçi
> *Sent:* Tuesday, 24 May 2016 10:51 PM
> *To:* varnish-misc at varnish-cache.org
> *Subject:* VCL debugging
>
>
>
> Hi everyone,
>
> 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.
>
>
>
> Thanx,
>
> Albert
>
>
>
> --
>
> Web: http://www.tollkuci.com
>
> Follow me on: [image:
> http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2flinkedin_icon.png.jpgx]
> LinkedIn <http://www.linkedin.com/in/alberttollkuci> [image:
> http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fgoogleplus-icon.png.jpgx]
> Google+ <https://plus.google.com/+AlbertTollku%C3%A7i/posts> [image:
> http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fFacebook_Icon.png.jpgx]
> Facebook <https://www.facebook.com/albert.tollkuci> [image:
> http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fTwitterIcon.png.jpgx]
> Twitter <https://twitter.com/AlbertTollkuci> [image:
> http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fcareers-icon.png.jpgx]Career
> 2.0 <http://careers.stackoverflow.com/atollkuci>
> ------------------------------
>
>
>

-- 
Web: http://www.tollkuci.com
Follow me on: LinkedIn <http://www.linkedin.com/in/alberttollkuci> Google+
<https://plus.google.com/+AlbertTollku%C3%A7i/posts> Facebook
<https://www.facebook.com/albert.tollkuci> Twitter
<https://twitter.com/AlbertTollkuci> Career 2.0
<http://careers.stackoverflow.com/atollkuci>
------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160525/65629f80/attachment.html>


More information about the varnish-misc mailing list