Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Commits

[master] 1916914 Fix up std.syslog example

 

 

Varnish commits RSS feed   Index | Next | Previous | View Threaded


tfheen at varnish-cache

Jul 22, 2013, 12:35 AM

Post #1 of 1 (46 views)
Permalink
[master] 1916914 Fix up std.syslog example

commit 1916914d41e14913a00c822d3f8fef3b52d32a12
Author: Tollef Fog Heen <tfheen [at] varnish-software>
Date: Mon Jul 22 09:33:53 2013 +0200

Fix up std.syslog example

Thanks to InvertedAcceleration <chris.magee [at] velocity42> for a
patch that pointed me at documentation that needed improving.

diff --git a/doc/sphinx/reference/vmod_std.rst b/doc/sphinx/reference/vmod_std.rst
index 984331e..f8c4456 100644
--- a/doc/sphinx/reference/vmod_std.rst
+++ b/doc/sphinx/reference/vmod_std.rst
@@ -95,9 +95,10 @@ Prototype
Return value
Void
Description
- Logs *string* to syslog marked with *priority*.
+ Logs *string* to syslog marked with *priority*. See your
+ system's syslog.h file for the legal values of *priority*.
Example
- std.syslog( LOG_USER|LOG_ALERT, "There is serious troble");
+ std.syslog(8 + 1, "Something is wrong");

fileread
--------

_______________________________________________
varnish-commit mailing list
varnish-commit [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit

Varnish commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.