Hi,
I think there is something wrong with logging categories.
Documentation says:
server - Messages related to general operation of the
server.
zone - Messages related to zones, zone parsing and loading.
I use Knot 1.4.1 with the following configuration:
log {
file "/var/log/knot/knot-server.log" {
server error, warning, notice, info;
}
file "/var/log/knot/knot-zone.log" {
zone error, warning, notice, info;
}
stderr {
any error, warning;
}
}
Everything is logged only into knot-server.log and knot-zone.log is
always empty.
knot-server.log file contains:
2014-01-20T21:45:12 Knot DNS 1.4.1 starting.
2014-01-20T21:45:12 Rate limiting set to 20 responses/sec.
2014-01-20T21:45:12 Binding to interface 0.0.0.0 port 53.
2014-01-20T21:45:12 Binding to interface :: port 53.
2014-01-20T21:45:12 Configured 2 interfaces and 1 zones.
2014-01-20T21:45:12 Changing group id to '1001'.
2014-01-20T21:45:12 Changing user id to '1001'.
2014-01-20T21:45:12 Server started as a daemon, PID = 25371
2014-01-20T21:45:12 PID stored in
'/usr/local/knot/1.4.1/var/run/knot/knot.pid'
2014-01-20T21:45:12 Server changed directory to /.
2014-01-20T21:45:12 Zone 'xxxx.eu.' loaded (serial 2013042301)
2014-01-20T21:45:12 Loaded 1 out of 1 zones.
2014-01-20T21:45:12 Starting server...
2014-01-20T21:45:12 Binding remote control interface to
/usr/local/knot/1.4.1/var/run/knot/knot.sock
2014-01-20T21:45:25 Reloading configuration...
2014-01-20T21:45:25 Zone 'xxx.eu.' is up-to-date (serial 2013042301)
2014-01-20T21:45:25 Loaded 1 out of 1 zones.
2014-01-20T21:45:25 Configuration reloaded.
And the question is: why are messages
related to zone loading logged in
"server" category and not in "zone" category (which is said in
documentation)?
Thanks
Petr Šťastný