is renamed ".2", etc. This is referred to as rotation.
</para>
<para>
- The default value is 204800. This is also the smallest value that
- may be specified without disabling rotation. Any value less than
+ The default value is 10240000 (10MB). The smallest value that may
+ be specified without disabling rotation is 204800. Any value less than
this, including 0, disables rotation.
</para>
<note>
/// @brief Default constructor.
LoggingDestination()
- : output_("stdout"), maxver_(1), maxsize_(204800), flush_(true) {
+ : output_("stdout"), maxver_(1), maxsize_(10240000), flush_(true) {
}
/// @brief Unparse a configuration object
std::string header = "{\n"
"\"name\": \"kea\",\n"
"\"output_options\": [ {\n"
- " \"output\": \"stdout\",\n \"maxsize\": 204800,\n"
+ " \"output\": \"stdout\",\n \"maxsize\": 10240000,\n"
" \"maxver\": 1,\n \"flush\": true } ],\n"
"\"severity\": \"";
std::string dbglvl = "\",\n\"debuglevel\": ";
ASSERT_EQ(1, info_verbose.destinations_.size());
EXPECT_EQ("stdout", info_verbose.destinations_[0].output_);
- EXPECT_EQ(204800, info_verbose.destinations_[0].maxsize_);
+ EXPECT_EQ(10240000, info_verbose.destinations_[0].maxsize_);
EXPECT_EQ(1, info_verbose.destinations_[0].maxver_);
expected = header + "DEBUG" + dbglvl + "99" + trailer;
};
const char* LoggingTest::TEST_LOG_NAME = "kea.test.log";
-const int LoggingTest::TEST_MAX_SIZE = 207800; // Slightly larger than default
+const int LoggingTest::TEST_MAX_SIZE = 204800; // Smallest without disabling rotation
const int LoggingTest::TEST_MAX_VERS = 2; // More than the default of 1
// Tests that the spec file is valid.