Skip to content
  • Thomas Markwalder's avatar
    [5324] Log file rotation now works when configured to do so · 2e2cb37a
    Thomas Markwalder authored
    doc/guide/logging.xml
        Updated logging section with more explanation of maxsize and maxver
    
    src/lib/dhcpsrv/logging_info.cc
        LoggingInfo::toSpec()
            Now sets maxsize and maxver in created spec
    
    src/lib/dhcpsrv/tests/logging_info_unittest.cc
        TEST_F(LoggingInfoTest, defaults)
            Added checks for default maxsize and maxver
    
    src/lib/dhcpsrv/tests/logging_unittest.cc
        LoggingTest:
            Added support for log files
    
        TEST_F(LoggingTest, logRotate) - new test the ensures
        logs rotate when configured to do so
    
    src/lib/testutils/dhcp_test_lib.sh.in
        Added code to remove log lock file.  When rotation is enabled,
        lock files are automatically enabled.
    2e2cb37a