namespace {
const unsigned kProgressRange = 100;
+const char kLogFileName[] = "/var/log/app-installers.log";
+const int kLogRotationSize = 1024 * 256; // 256KB
+const int kLogMaximumRotation = 3;
}
unsigned total_steps = steps_.size();
unsigned current_step = 1;
+ ::utils::LogCore::GetCore().SetFileName(kLogFileName);
+ ::utils::LogCore::GetCore().SetRotationSize(kLogRotationSize);
+ ::utils::LogCore::GetCore().SetMaximumRotation(kLogMaximumRotation);
+
for (; it != itEnd; ++it, ++current_step) {
try {
TTRACE(TTRACE_TAG_APP, "%s_%s", (*it)->name(), "precheck");
ret = Result::UNDO_ERROR;
}
} while (it-- != itStart);
+ ::utils::LogCore::GetCore().WriteLog();
} else {
if (it == itEnd)
--it;