From: Francis Dupont Date: Mon, 7 Jan 2019 18:42:03 +0000 (+0100) Subject: [208-move-logging-from-global-objects-to-global-params] Almost done. Checkpoint of... X-Git-Tag: Kea-1.6.0-beta~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc4cc182af343fc0daeef92a78f5d8ea0f38dc8;p=thirdparty%2Fkea.git [208-move-logging-from-global-objects-to-global-params] Almost done. Checkpoint of the day --- diff --git a/doc/api/config-set.json b/doc/api/config-set.json index a6042f724c..ce0cb4b9ee 100644 --- a/doc/api/config-set.json +++ b/doc/api/config-set.json @@ -8,8 +8,6 @@ \"command\": \"config-set\", \"arguments\": { \"\": { - }, - \"Logging\": { } } }", diff --git a/doc/api/config-test.json b/doc/api/config-test.json index 5bd1f004e5..ea9f12f267 100644 --- a/doc/api/config-test.json +++ b/doc/api/config-test.json @@ -8,8 +8,6 @@ \"command\": \"config-test\", \"arguments\": { \"\": { - }, - \"Logging\": { } } }", diff --git a/doc/examples/agent/comments.json b/doc/examples/agent/comments.json index d0d0c10798..b6a717740e 100644 --- a/doc/examples/agent/comments.json +++ b/doc/examples/agent/comments.json @@ -20,12 +20,8 @@ "socket-type": "unix", "socket-name": "/path/to/the/unix/socket-v4" } - } + }, - }, - - "Logging": - { // In loggers "loggers": [ { diff --git a/doc/examples/agent/simple.json b/doc/examples/agent/simple.json index b64a647a62..7a531c9317 100644 --- a/doc/examples/agent/simple.json +++ b/doc/examples/agent/simple.json @@ -66,13 +66,9 @@ "param1": "foo" } } - ] - - }, + ], - // Similar to other Kea components, CA also uses logging. - "Logging": - { + // Similar to other Kea components, CA also uses logging. "loggers": [ { "name": "kea-ctrl-agent", diff --git a/doc/examples/ddns/comments.json b/doc/examples/ddns/comments.json index f97005b098..0ee655cf2e 100644 --- a/doc/examples/ddns/comments.json +++ b/doc/examples/ddns/comments.json @@ -49,10 +49,8 @@ "algorithm": "HMAC-MD5", "secret": "LSWXnfkKZjdPJI5QxlpnfQ==" } - ] -}, + ], -"Logging": { // In loggers "loggers": [ { diff --git a/doc/examples/ddns/sample1.json b/doc/examples/ddns/sample1.json index 890fc08adf..2e1ed1378b 100644 --- a/doc/examples/ddns/sample1.json +++ b/doc/examples/ddns/sample1.json @@ -132,12 +132,10 @@ "digest-bits": 256, "secret": "/4wklkm04jeH4anx2MKGJLcya+ZLHldL5d6mK+4q6UXQP7KJ9mS2QG29hh0SJR4LA0ikxNJTUMvir42gLx6fGQ==" } - ] -}, + ], // The following configures logging. It assumes that messages with at least // informational level (info, warn, error and fatal) should be logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp-ddns", diff --git a/doc/examples/kea4/advanced.json b/doc/examples/kea4/advanced.json index 00380e59e7..38f71ed18a 100644 --- a/doc/examples/kea4/advanced.json +++ b/doc/examples/kea4/advanced.json @@ -172,14 +172,12 @@ "subnet": "192.0.5.0/24", "authoritative": true } - ] -}, - - // The following configures logging. It assumes that messages with - // at least informational level (info, warn, error and fatal) should - // be logged to stdout. - "Logging": { - "loggers": [ + ], + + // The following configures logging. It assumes that messages with + // at least informational level (info, warn, error and fatal) should + // be logged to stdout. + "loggers": [ { "name": "kea-dhcp4", "output_options": [ diff --git a/doc/examples/kea4/all-keys-current.json b/doc/examples/kea4/all-keys-current.json index 6a6457e95e..ff53006d04 100644 --- a/doc/examples/kea4/all-keys-current.json +++ b/doc/examples/kea4/all-keys-current.json @@ -790,12 +790,7 @@ "t1-percent": .5, // T2 = valid lifetime * .75. - "t2-percent": .75 - - }, - - // Logging configuration begins here. - "Logging": { + "t2-percent": .75, // List of loggers used by the servers using this configuration file. "loggers": [ diff --git a/doc/examples/kea4/all-keys-stable.json b/doc/examples/kea4/all-keys-stable.json index 4728a5fb09..babcd8587f 100644 --- a/doc/examples/kea4/all-keys-stable.json +++ b/doc/examples/kea4/all-keys-stable.json @@ -691,12 +691,8 @@ // Queue type was mandatory. "queue-type": "kea-ring4" - } + }, // Missing: calculate-tee-times, t1-percent, t2-percent - }, - - // Logging configuration begins here. - "Logging": { // List of loggers used by the servers using this configuration file. "loggers": [ diff --git a/doc/examples/kea4/backends.json b/doc/examples/kea4/backends.json index 47994bf25b..8238eaa71f 100644 --- a/doc/examples/kea4/backends.json +++ b/doc/examples/kea4/backends.json @@ -93,13 +93,11 @@ "subnet": "192.0.2.0/24", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/cassandra.json b/doc/examples/kea4/cassandra.json index d891225b3e..8d7d850417 100644 --- a/doc/examples/kea4/cassandra.json +++ b/doc/examples/kea4/cassandra.json @@ -100,13 +100,11 @@ "subnet": "192.0.2.0/24", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/classify.json b/doc/examples/kea4/classify.json index a44b030455..5a623b718f 100644 --- a/doc/examples/kea4/classify.json +++ b/doc/examples/kea4/classify.json @@ -121,13 +121,11 @@ "subnet": "192.0.4.0/23", "interface": "ethY" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/classify2.json b/doc/examples/kea4/classify2.json index f7cba5cc09..e9d82ac7bd 100644 --- a/doc/examples/kea4/classify2.json +++ b/doc/examples/kea4/classify2.json @@ -153,13 +153,11 @@ { "hw-address": "00:00:00:aa:bb:cc", "hostname": "ha" } ] } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/comments.json b/doc/examples/kea4/comments.json index 104e3479f8..13831113ae 100644 --- a/doc/examples/kea4/comments.json +++ b/doc/examples/kea4/comments.json @@ -101,10 +101,8 @@ "dhcp-ddns": { "comment": "No dynamic DNS", "enable-updates": false - } -}, + }, -"Logging": { // In loggers "loggers": [ { "comment": "A logger", diff --git a/doc/examples/kea4/dhcpv4-over-dhcpv6.json b/doc/examples/kea4/dhcpv4-over-dhcpv6.json index 1905cf8a36..779041b172 100644 --- a/doc/examples/kea4/dhcpv4-over-dhcpv6.json +++ b/doc/examples/kea4/dhcpv4-over-dhcpv6.json @@ -27,12 +27,8 @@ ], // This enables DHCPv4-over-DHCPv6 support - "dhcp4o6-port": 6767 + "dhcp4o6-port": 6767, -}, - -"Logging": -{ "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/global-reservations.json b/doc/examples/kea4/global-reservations.json index 0be0be490a..155b56aeea 100644 --- a/doc/examples/kea4/global-reservations.json +++ b/doc/examples/kea4/global-reservations.json @@ -142,13 +142,11 @@ "subnet": "192.0.2.0/24", "interface": "eth0" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/ha-load-balancing-primary.json b/doc/examples/kea4/ha-load-balancing-primary.json index 38500a90dd..6251f3cf47 100644 --- a/doc/examples/kea4/ha-load-balancing-primary.json +++ b/doc/examples/kea4/ha-load-balancing-primary.json @@ -192,13 +192,10 @@ // IP address. "relay": { "ip-address": "192.168.56.1" } } - ] -}, + ], -// Logging configuration starts here. -"Logging": -{ - "loggers": [ + // Logging configuration starts here. + "loggers": [ { // This section affects kea-dhcp4, which is the base logger for DHCPv4 // component. It tells DHCPv4 server to write all log messages (on diff --git a/doc/examples/kea4/leases-expiration.json b/doc/examples/kea4/leases-expiration.json index 4ce1a8cc23..cc499aaeb3 100644 --- a/doc/examples/kea4/leases-expiration.json +++ b/doc/examples/kea4/leases-expiration.json @@ -48,13 +48,11 @@ "subnet": "192.0.2.0/24", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/multiple-options.json b/doc/examples/kea4/multiple-options.json index 6a45c3ef3f..ee6fba7474 100644 --- a/doc/examples/kea4/multiple-options.json +++ b/doc/examples/kea4/multiple-options.json @@ -165,13 +165,11 @@ } ] } ] - } ] -}, + } ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/mysql-reservations.json b/doc/examples/kea4/mysql-reservations.json index 7e2c6d13df..01e1be67d4 100644 --- a/doc/examples/kea4/mysql-reservations.json +++ b/doc/examples/kea4/mysql-reservations.json @@ -76,13 +76,11 @@ "interface": "ethX", "id": 1 } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/pgsql-reservations.json b/doc/examples/kea4/pgsql-reservations.json index a7c3edb4a3..921d2dc114 100644 --- a/doc/examples/kea4/pgsql-reservations.json +++ b/doc/examples/kea4/pgsql-reservations.json @@ -78,13 +78,11 @@ "interface": "ethX", "id": 1 } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/reservations.json b/doc/examples/kea4/reservations.json index 0fcdb44b8f..61b18bd8b4 100644 --- a/doc/examples/kea4/reservations.json +++ b/doc/examples/kea4/reservations.json @@ -143,13 +143,11 @@ ] } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/several-subnets.json b/doc/examples/kea4/several-subnets.json index a7dfa62dae..b291c5975e 100644 --- a/doc/examples/kea4/several-subnets.json +++ b/doc/examples/kea4/several-subnets.json @@ -62,13 +62,11 @@ { "pools": [ { "pool": "192.0.4.1 - 192.0.4.254" } ], "subnet": "192.0.4.0/24" - } ] -}, + } ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/single-subnet.json b/doc/examples/kea4/single-subnet.json index 7d626b5eac..a71014b856 100644 --- a/doc/examples/kea4/single-subnet.json +++ b/doc/examples/kea4/single-subnet.json @@ -37,14 +37,12 @@ "subnet": "192.0.2.0/24", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. Alternatively, you can specify stderr here, a filename // or 'syslog', which will store output messages via syslog. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea4/with-ddns.json b/doc/examples/kea4/with-ddns.json index b019d3f527..a5bd324570 100644 --- a/doc/examples/kea4/with-ddns.json +++ b/doc/examples/kea4/with-ddns.json @@ -56,13 +56,11 @@ "qualifying-suffix" : "test.suffix.", "hostname-char-set": "[^A-Za-z0-9.-]", "hostname-char-replacement": "x" - } -}, + }, // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp4", diff --git a/doc/examples/kea6/advanced.json b/doc/examples/kea6/advanced.json index f64572a3f6..b1746bc195 100644 --- a/doc/examples/kea6/advanced.json +++ b/doc/examples/kea6/advanced.json @@ -155,13 +155,11 @@ "ip-address": "3000::1" } } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/all-keys-current.json b/doc/examples/kea6/all-keys-current.json index 8bf956df16..fb2cfe0b7a 100644 --- a/doc/examples/kea6/all-keys-current.json +++ b/doc/examples/kea6/all-keys-current.json @@ -749,11 +749,7 @@ "t1-percent": .5, // T2 = valid lifetime * .75. - "t2-percent": .75 - }, - - // Logging configuration begins here. - "Logging": { + "t2-percent": .75, // List of loggers used by the servers using this configuration file. "loggers": [ diff --git a/doc/examples/kea6/all-keys-stable.json b/doc/examples/kea6/all-keys-stable.json index 09737b5a89..a6a488d4d0 100644 --- a/doc/examples/kea6/all-keys-stable.json +++ b/doc/examples/kea6/all-keys-stable.json @@ -647,11 +647,7 @@ // Queue type was mandatory. "queue-type": "kea-ring6" - } - }, - - // Logging configuration begins here. - "Logging": { + }, // List of loggers used by the servers using this configuration file. "loggers": [ diff --git a/doc/examples/kea6/backends.json b/doc/examples/kea6/backends.json index 87009690d7..d03ba2f953 100644 --- a/doc/examples/kea6/backends.json +++ b/doc/examples/kea6/backends.json @@ -94,13 +94,11 @@ "subnet": "2001:db8:1::/64", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/cassandra.json b/doc/examples/kea6/cassandra.json index 6cf7ae03e1..f1bf18f9e1 100644 --- a/doc/examples/kea6/cassandra.json +++ b/doc/examples/kea6/cassandra.json @@ -100,13 +100,11 @@ "subnet": "2001:db8:1::/64", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/classify.json b/doc/examples/kea6/classify.json index 50c78e1a06..47e1e37ee8 100644 --- a/doc/examples/kea6/classify.json +++ b/doc/examples/kea6/classify.json @@ -88,13 +88,11 @@ "interface": "ethY" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/classify2.json b/doc/examples/kea6/classify2.json index 997dad3ad2..be3a071afd 100644 --- a/doc/examples/kea6/classify2.json +++ b/doc/examples/kea6/classify2.json @@ -124,13 +124,11 @@ ] } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/comments.json b/doc/examples/kea6/comments.json index 4bd6f767de..b00891f528 100644 --- a/doc/examples/kea6/comments.json +++ b/doc/examples/kea6/comments.json @@ -111,10 +111,8 @@ "dhcp-ddns": { "comment": "No dynamic DNS", "enable-updates": false - } -}, + }, -"Logging": { // In loggers "loggers": [ { "comment": "A logger", diff --git a/doc/examples/kea6/dhcpv4-over-dhcpv6.json b/doc/examples/kea6/dhcpv4-over-dhcpv6.json index 2acb41df8f..c2e6ad3dfb 100644 --- a/doc/examples/kea6/dhcpv4-over-dhcpv6.json +++ b/doc/examples/kea6/dhcpv4-over-dhcpv6.json @@ -38,12 +38,9 @@ "csv-format": true, // Put the server address here "data": "2001:db8:1:1::1" } - ] -}, + ], -"Logging": -{ - "loggers": [ + "loggers": [ { "name": "kea-dhcp6", "output_options": [ diff --git a/doc/examples/kea6/duid.json b/doc/examples/kea6/duid.json index 653ad9281e..a192507ddc 100644 --- a/doc/examples/kea6/duid.json +++ b/doc/examples/kea6/duid.json @@ -58,12 +58,10 @@ "subnet": "2001:db8:1::/64", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at least // informational level (info, warn, error) will will be logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/global-reservations.json b/doc/examples/kea6/global-reservations.json index 5f6118ea57..b5674178c1 100644 --- a/doc/examples/kea6/global-reservations.json +++ b/doc/examples/kea6/global-reservations.json @@ -136,13 +136,11 @@ ], "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/ha-hot-standby.json b/doc/examples/kea6/ha-hot-standby.json index 18ac41c957..5556aa903c 100644 --- a/doc/examples/kea6/ha-hot-standby.json +++ b/doc/examples/kea6/ha-hot-standby.json @@ -115,14 +115,12 @@ "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. Alternatively, you can specify stderr here, a filename // or 'syslog', which will store output messages via syslog. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/leases-expiration.json b/doc/examples/kea6/leases-expiration.json index ff2e5fa528..6a1ae5869b 100644 --- a/doc/examples/kea6/leases-expiration.json +++ b/doc/examples/kea6/leases-expiration.json @@ -56,13 +56,11 @@ "subnet": "2001:db8:1::/64", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/multiple-options.json b/doc/examples/kea6/multiple-options.json index 6fab01c443..ba20a63042 100644 --- a/doc/examples/kea6/multiple-options.json +++ b/doc/examples/kea6/multiple-options.json @@ -161,13 +161,11 @@ "subnet": "2001:db8:1::/64", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/mysql-reservations.json b/doc/examples/kea6/mysql-reservations.json index f400c43a69..0bd4968b58 100644 --- a/doc/examples/kea6/mysql-reservations.json +++ b/doc/examples/kea6/mysql-reservations.json @@ -73,13 +73,11 @@ "interface": "ethX", "id": 1 } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/pgsql-reservations.json b/doc/examples/kea6/pgsql-reservations.json index 6f930753df..eef6f70cbc 100644 --- a/doc/examples/kea6/pgsql-reservations.json +++ b/doc/examples/kea6/pgsql-reservations.json @@ -74,13 +74,11 @@ "interface": "ethX", "id": 1 } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/reservations.json b/doc/examples/kea6/reservations.json index 59e5e97eec..dad59d4f1e 100644 --- a/doc/examples/kea6/reservations.json +++ b/doc/examples/kea6/reservations.json @@ -132,13 +132,11 @@ ] } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/several-subnets.json b/doc/examples/kea6/several-subnets.json index 54acb74f10..bbebe365e4 100644 --- a/doc/examples/kea6/several-subnets.json +++ b/doc/examples/kea6/several-subnets.json @@ -39,14 +39,12 @@ { "pools": [ { "pool": "2001:db8:3::/80" } ], "subnet": "2001:db8:3::/64" }, { "pools": [ { "pool": "2001:db8:4::/80" } ], - "subnet": "2001:db8:4::/64" } ] -}, + "subnet": "2001:db8:4::/64" } ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { - "loggers": [ + "loggers": [ { "name": "kea-dhcp6", "output_options": [ diff --git a/doc/examples/kea6/simple.json b/doc/examples/kea6/simple.json index b47ca60f83..30903b52dc 100644 --- a/doc/examples/kea6/simple.json +++ b/doc/examples/kea6/simple.json @@ -39,14 +39,12 @@ "subnet": "2001:db8:1::/64", "interface": "ethX" } - ] -}, + ], // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. Alternatively, you can specify stderr here, a filename // or 'syslog', which will store output messages via syslog. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/softwire46.json b/doc/examples/kea6/softwire46.json index 02e69455ce..a5750693d4 100644 --- a/doc/examples/kea6/softwire46.json +++ b/doc/examples/kea6/softwire46.json @@ -68,12 +68,10 @@ } ] } - ] -}, + ], // The following configures logging. Kea will log all debug messages // to /var/log/kea-debug.log file. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/kea6/with-ddns.json b/doc/examples/kea6/with-ddns.json index 04cde9edcc..dc52323816 100644 --- a/doc/examples/kea6/with-ddns.json +++ b/doc/examples/kea6/with-ddns.json @@ -58,14 +58,12 @@ "qualifying-suffix" : "test.suffix.", "hostname-char-set": "[^A-Za-z0-9.-]", "hostname-char-replacement": "x" - } + }, -}, // The following configures logging. It assumes that messages with at // least informational level (info, warn, error and fatal) should be // logged to stdout. -"Logging": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/examples/netconf/comments.json b/doc/examples/netconf/comments.json index 637996dd29..7f04e8d3ac 100644 --- a/doc/examples/netconf/comments.json +++ b/doc/examples/netconf/comments.json @@ -23,12 +23,8 @@ "socket-name": "/path/to/the/unix/socket-v4" } } - } + }, - }, - - "Logging": - { // In loggers "loggers": [ { diff --git a/doc/examples/netconf/kea-dhcp6-operations/netconf.json b/doc/examples/netconf/kea-dhcp6-operations/netconf.json index f5fdca8c2a..8c918065db 100644 --- a/doc/examples/netconf/kea-dhcp6-operations/netconf.json +++ b/doc/examples/netconf/kea-dhcp6-operations/netconf.json @@ -11,10 +11,8 @@ "socket-name": "/tmp/kea6-sock" } } - } - }, - "Logging": - { + }, + "loggers": [ { diff --git a/doc/examples/netconf/simple-dhcp4.json b/doc/examples/netconf/simple-dhcp4.json index 42f06214ce..b8f85e054f 100644 --- a/doc/examples/netconf/simple-dhcp4.json +++ b/doc/examples/netconf/simple-dhcp4.json @@ -64,7 +64,7 @@ "comment": "Kea DHCP4 server serving network on floor 13" } - } + }, // Netconf is able to load hook libraries that augment its operation. // The primary functionality is the ability to add new commands. @@ -86,11 +86,7 @@ // } //] - }, - - // Similar to other Kea components, Netconf also uses logging. - "Logging": - { + // Similar to other Kea components, Netconf also uses logging. "loggers": [ { "name": "kea-netconf", diff --git a/doc/examples/netconf/simple-dhcp6.json b/doc/examples/netconf/simple-dhcp6.json index 9ff8674412..5dbb22218e 100644 --- a/doc/examples/netconf/simple-dhcp6.json +++ b/doc/examples/netconf/simple-dhcp6.json @@ -65,7 +65,7 @@ "comment": "Kea DHCP6 server serving network on floor 13" } - } + }, // Netconf is able to load hook libraries that augment its operation. // The primary functionality is the ability to add new commands. @@ -87,11 +87,7 @@ // } //] - }, - - // Similar to other Kea components, Netconf also uses logging. - "Logging": - { + // Similar to other Kea components, Netconf also uses logging. "loggers": [ { "name": "kea-netconf", diff --git a/doc/guide/agent.xml b/doc/guide/agent.xml index 63da66af44..347f0b440b 100644 --- a/doc/guide/agent.xml +++ b/doc/guide/agent.xml @@ -1,5 +1,5 @@ - If there are multiple logger specifications in the configuration that might match a particular logger, the specification with the @@ -225,6 +212,7 @@ kea-dhcp-ddns.dhcpddnscoreThe logger used by the kea-dhcp-ddns daemon for logging events related to DDNS operations. kea-dhcp-ddns.dhcp-to-d2coreUsed by the kea-dhcp-ddns daemon for logging information about events dealing with receiving messages from the DHCP servers and adding them to the queue for processing. kea-dhcp-ddns.d2-to-dnscoreUsed by the kea-dhcp-ddns daemon for logging information about events dealing with sending and receiving messages with the DNS servers. + kea-netconfcoreThe root logger for the Netconf agent. All components used by Netconf inherit the settings from this logger if there is no specialized logger provided. @@ -406,11 +394,11 @@
Example Logger Configurations - In this example we want to set the global logging to write to the + In this example we want to set the Server logging to write to the console using standard output. -"Logging": { +"Server": { "loggers": [ { "name": "kea-dhcp4", @@ -431,7 +419,7 @@ created. -"Logging": { +"Server": { "loggers": [ { "name": "kea-dhcp6", diff --git a/doc/guide/netconf.xml b/doc/guide/netconf.xml index 85f4a6a11f..0bd63a599c 100644 --- a/doc/guide/netconf.xml +++ b/doc/guide/netconf.xml @@ -1,5 +1,5 @@