Commit e772860b authored by Daniel Salzman's avatar Daniel Salzman

conf: rename log.to to log.target

parent 2094f683
......@@ -22,7 +22,7 @@ which can be used as a base for your Knot DNS setup::
file: example.com.zone
log:
- to: syslog
- target: syslog
any: info
Now let's go step by step through this configuration:
......
......@@ -679,7 +679,7 @@ will be logged to both standard error output and syslog. The \fBinfo\fP and
.nf
.ft C
log:
\- to: stdout | stderr | syslog | STR
\- target: stdout | stderr | syslog | STR
server: critical | error | warning | notice | info | debug
zone: critical | error | warning | notice | info | debug
any: critical | error | warning | notice | info | debug
......@@ -687,7 +687,7 @@ log:
.fi
.UNINDENT
.UNINDENT
.SS to
.SS target
.sp
A logging output.
.sp
......
......@@ -807,15 +807,15 @@ will be logged to both standard error output and syslog. The ``info`` and
::
log:
- to: stdout | stderr | syslog | STR
- target: stdout | stderr | syslog | STR
server: critical | error | warning | notice | info | debug
zone: critical | error | warning | notice | info | debug
any: critical | error | warning | notice | info | debug
.. _log_to:
.. _log_target:
to
--
target
------
A logging output.
......
......@@ -165,7 +165,7 @@ static const yp_item_t desc_zone[] = {
};
static const yp_item_t desc_log[] = {
{ C_TO, YP_TSTR, YP_VNONE },
{ C_TARGET, YP_TSTR, YP_VNONE },
{ C_SERVER, YP_TOPT, YP_VOPT = { log_severities, 0 } },
{ C_ZONE, YP_TOPT, YP_VOPT = { log_severities, 0 } },
{ C_ANY, YP_TOPT, YP_VOPT = { log_severities, 0 } },
......
......@@ -73,7 +73,7 @@
#define C_SIG_LIFETIME "\x12""signature-lifetime"
#define C_STORAGE "\x07""storage"
#define C_SRV "\x06""server"
#define C_TO "\x02""to"
#define C_TARGET "\x06""target"
#define C_TPL "\x08""template"
#define C_TRANSFERS "\x09""transfers"
#define C_USER "\x04""user"
......
......@@ -2690,14 +2690,14 @@ yyreduce:
case 151:
#line 728 "cf-parse.y" /* yacc.c:1646 */
{ f_id(scanner, R_LOG, C_TO, (yyvsp[0].tok).t); }
{ f_id(scanner, R_LOG, C_TARGET, (yyvsp[0].tok).t); }
#line 2695 "cf-parse.tab.c" /* yacc.c:1646 */
break;
case 152:
#line 732 "cf-parse.y" /* yacc.c:1646 */
{
f_name(scanner, R_LOG, C_TO, true);
f_name(scanner, R_LOG, C_TARGET, true);
f_val(scanner, R_LOG, true, "%s", (yyvsp[0].tok).t); free((yyvsp[0].tok).t);
f_val(scanner, R_LOG, false, "\n");
}
......
......@@ -725,12 +725,12 @@ log_src:
;
log_dest:
LOG_DEST { f_id(scanner, R_LOG, C_TO, $1.t); }
LOG_DEST { f_id(scanner, R_LOG, C_TARGET, $1.t); }
;
log_file:
FILENAME TEXT {
f_name(scanner, R_LOG, C_TO, true);
f_name(scanner, R_LOG, C_TARGET, true);
f_val(scanner, R_LOG, true, "%s", $2.t); free($2.t);
f_val(scanner, R_LOG, false, "\n");
}
......
......@@ -95,7 +95,7 @@ typedef enum {
#define C_SIG_LIFETIME "\x12""signature-lifetime"
#define C_STORAGE "\x07""storage"
#define C_SRV "\x06""server"
#define C_TO "\x02""to"
#define C_TARGET "\x06""target"
#define C_TPL "\x08""template"
#define C_TRANSFERS "\x09""transfers"
#define C_USER "\x04""user"
......
......@@ -973,7 +973,7 @@ class Knot(Server):
s.end()
s.begin("log")
s.id_item("to", "stdout")
s.id_item("target", "stdout")
s.item_str("any", "debug")
s.end()
......
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