#include <string>
#include <utility>
+namespace {
+
+constexpr mode_t kDefaultMode640 = S_IRUSR | S_IWUSR | S_IRGRP;
+
+} // namespace
+
namespace utils {
FileLogBackend::FileLogBackend(std::string file_name, int rotation_size,
// clean the log stream
log_stream_->str("");
log_stream_->clear();
+
+ chmod(file_name_.c_str(), kDefaultMode640);
}
bool FileLogBackend::Rotate() {