[master] e8bfec1 Improve std.syslog documentation and example
Federico G. Schwindt
fgsch at lodoss.net
Tue Jan 20 11:28:47 CET 2015
commit e8bfec127190ae41b138630cba15bef114635680
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Tue Jan 20 10:28:13 2015 +0000
Improve std.syslog documentation and example
diff --git a/lib/libvmod_std/vmod.vcc b/lib/libvmod_std/vmod.vcc
index a93721b..b84fdaf 100644
--- a/lib/libvmod_std/vmod.vcc
+++ b/lib/libvmod_std/vmod.vcc
@@ -77,18 +77,22 @@ Example
$Function VOID log(STRING_LIST s)
Description
- Logs the string *s* to the shared memory log, using VSL tag *SLT_VCL_Log*.
+ Logs the string *s* to the shared memory log, using VSL tag
+ *SLT_VCL_Log*.
Example
std.log("Something fishy is going on with the vhost " + req.host);
$Function VOID syslog(INT priority, STRING_LIST s)
Description
- Logs the string *s* to syslog marked with *priority*. See your
- system's syslog.h file for the legal values of *priority*.
+ Logs the string *s* to syslog marked with *priority*. *priority*
+ is formed by ORing the facility and priority values. See your
+ system's syslog.h file for priorities and facility codes.
Example
std.syslog(8 + 1, "Something is wrong");
+ This will send a message to syslog using LOG_USER | LOG_PID.
+
$Function STRING fileread(PRIV_CALL, STRING)
Description
More information about the varnish-commit
mailing list