Commit 76a05f4c by ZhongJianfu

update:更新

parent 36107efe
......@@ -54,7 +54,7 @@ void rolloutHandler(const char *filename, std::size_t size)
cout << "###########LOG SIZE FULL#############" << endl;
std::stringstream ss;
string cc;
ss << "ren " << filename << " log_backup_" << ++idx;
ss << "ren " << filename << " ./log/log_backup_" << ++idx << "_" << p->tm_year << p->tm_mon << p->tm_mday << ".log";
cc = ss.str();
replace(cc.begin(), cc.end(), '/', '\\');
system(cc.c_str());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment