1、修改logging.cc/LogFileObject类,
增减 int32 last_main_day_;
string cur_sub_dir_;两个变量
2. 修改logging.cc/LogFileObject::Write函数
bool log_day_changed = false;
if (static_cast<int>(file_length_ >> 20) >= MaxLogSize() ||
PidHasChanged() || (log_day_changed = DayHasChanged(timestamp,last_main_day_))) {
if (file_ != NULL) fclose(file_);
file_ = NULL;
file_length_ = bytes_since_flush_ = dropped_mem_length_ = 0;
rollover_attempt_ = kRolloverAttemptFrequency-1;
if(log_day_changed) {
struct ::tm tm_time;
localtime_r(×tamp, &tm_time);
ostringstream time_pid_stream;
time_pid_stream.fill('0');
time_pid_stream << 1900+tm_time.tm_year
<< setw(2) << 1+