Commit 545da42b authored by venaas's avatar venaas Committed by venaas

fixed syslog url syntax, updated example config and manpage

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@130 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 1ebcdd0a
......@@ -70,6 +70,8 @@ int debug_set_destination(char *dest) {
}
if (!strncasecmp(dest, "x-syslog://", 11)) {
dest += 11;
if (*dest == '/')
dest++;
if (*dest) {
for (i = 0; facstrings[i]; i++)
if (!strcasecmp(dest, facstrings[i]))
......
......@@ -2298,7 +2298,7 @@ int main(int argc, char **argv) {
options.logdestination = NULL;
else {
if (!options.logdestination)
options.logdestination = "x-syslog://";
options.logdestination = "x-syslog:///";
debug_set_destination(options.logdestination);
}
......
......@@ -17,8 +17,8 @@
# Or logging with Syslog. LOG_DAEMON used if facility not specified
# The supported facilities are LOG_DAEMON, LOG_MAIL, LOG_USER and
# LOG_LOCAL0, ..., LOG_LOCAL7
#LogDestination x-syslog://
#LogDestination x-syslog://log_local2
#LogDestination x-syslog:///
#LogDestination x-syslog:///log_local2
#If we have TLS clients or servers we must define at least one tls block.
#You can name them whatever you like and then reference them by name when
......
.TH radsecproxy.conf 5 "7 June 2007"
.TH radsecproxy.conf 5 "13 June 2007"
.SH "NAME"
radsecproxy.conf - Radsec proxy configuration file
......@@ -80,7 +80,7 @@ syslog with facility \fBLOG_DAEMON\fR. Using this option you can specify another
syslog facility, or you may specify that logging should be to a particular file,
not using syslog. The value must be either a \fIfile\fR or \fIsyslog\fR URL. The
file URL is the standard one, specifying a local file that should be used. For
syslog, you must do use the following URL syntax: \fBx-syslog://FACILITY\fR where
syslog, you must use the syntax: \fBx-syslog:///FACILITY\fR where
\fBFACILITY\fR must be one of \fBLOG_DAEMON\fR, \fBLOG_MAIL\fR, \fBLOG_USER\fR,
\fBLOG_LOCAL0\fR, \fBLOG_LOCAL1\fR, \fBLOG_LOCAL2\fR, \fBLOG_LOCAL3\fR,
\fBLOG_LOCAL4\fR, \fBLOG_LOCAL5\fR, \fBLOG_LOCAL6\fR or \fBLOG_LOCAL7\fR. You may
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment