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: [email protected] [mailto:[email protected]] On Behalf Of Albert Tollkuçi Sent: Tuesday, 24 May 2016 10:51 PM To: [email protected] 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<http://www.tollkuci.com/> Follow me on: [http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2flinkedin_icon.png.jpgx] LinkedIn<http://www.linkedin.com/in/alberttollkuci> [http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fgoogleplus-icon.png.jpgx] Google+<https://plus.google.com/+AlbertTollku%C3%A7i/posts> [http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fFacebook_Icon.png.jpgx] Facebook<https://www.facebook.com/albert.tollkuci> [http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fTwitterIcon.png.jpgx] Twitter<https://twitter.com/AlbertTollkuci> [http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fcareers-icon.png.jpgx] Career 2.0<http://careers.stackoverflow.com/atollkuci> ________________________________ Imagination is more important than knowledge Albert Einstein The three chief virtues of a programmer are: Laziness, Impatience and Hubris Larry Wall 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 Erwin Rommel 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. Randall E. Stross Measuring programming progress by lines of code is like measuring aircraft building progress by weight. Bill Gates
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
