From d26a49452072a635d58d83c09221cb62a023872d Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Fri, 18 Jul 2014 21:11:42 +0200 Subject: [PATCH] [3427] Changes after review: - Kea ARM updated - shell tests for Kea4,Kea6 and D2 are now passing - kea.conf updated with logging info - Various improvements in Daemon and LogConfigParser - DEFAULT_SYSLOG_NAME removed - Copyright years fixed - Couple additional tests written --- doc/guide/logging.xml | 34 +++-- src/bin/d2/d_controller.cc | 18 +-- src/bin/d2/tests/d2_process_tests.sh.in | 28 ++++ src/bin/dhcp4/kea_controller.cc | 18 +-- src/bin/dhcp4/main.cc | 3 + src/bin/dhcp4/tests/dhcp4_process_tests.sh.in | 30 +++++ src/bin/dhcp6/kea_controller.cc | 18 +-- src/bin/dhcp6/main.cc | 3 + src/bin/dhcp6/tests/dhcp6_process_tests.sh.in | 30 +++++ src/bin/keactrl/kea.conf.in | 19 +++ src/lib/dhcpsrv/configuration.h | 7 +- src/lib/dhcpsrv/daemon.cc | 13 +- src/lib/dhcpsrv/daemon.h | 25 +++- src/lib/dhcpsrv/logging.cc | 41 +++--- src/lib/dhcpsrv/logging.h | 66 +++++++--- src/lib/dhcpsrv/subnet.h | 2 +- .../dhcpsrv/tests/configuration_unittest.cc | 2 +- src/lib/dhcpsrv/tests/daemon_unittest.cc | 9 +- src/lib/dhcpsrv/tests/logging_unittest.cc | 122 ++++++++++++++++-- src/lib/log/logger_manager.cc | 2 +- src/lib/log/logger_name.cc | 5 + src/lib/log/logger_name.h | 6 + src/lib/log/logger_unittest_support.cc | 5 +- src/lib/log/logger_unittest_support.h | 2 +- src/lib/log/tests/init_logger_test.sh.in | 34 ++--- src/lib/log/tests/logger_lock_test.sh.in | 2 +- src/lib/log/tests/logger_manager_unittest.cc | 2 +- src/lib/log/tests/logger_name_unittest.cc | 5 + 28 files changed, 413 insertions(+), 138 deletions(-) diff --git a/doc/guide/logging.xml b/doc/guide/logging.xml index 2459896029..9f8ca09a27 100644 --- a/doc/guide/logging.xml +++ b/doc/guide/logging.xml @@ -55,13 +55,14 @@ name (string) - Each logger in the system has a name, the name being that - of the component using it to log messages. For instance, - if you want to configure logging for the Dhcp4 module, - you add an entry for a logger named Dhcp4. This - configuration will then be used by the loggers in the - Dhcp4 module, and all the libraries used by it. - + Each logger in the system has a name, the name being that + of the component using it to log messages. For instance, + if you want to configure logging for the Dhcp4 module, + you add an entry for a logger named Dhcp4. This + configuration will then be used by the loggers in the + Dhcp4 module, and all the libraries used by it (unless + a library defines its own logger). +