no message

master
zcy 2021-05-25 23:19:54 +08:00
parent 6865afce40
commit 4c10d2ed2d
1 changed files with 12 additions and 6 deletions

View File

@ -67,8 +67,14 @@ void _C_Loger::operator<<(const string& wb){
if (this->mFile == nullptr){
this->error = true;
}
string tmp = getTime();
tmp += ":";
tmp += wb;
tmp += " \n";
fwrite(tmp.c_str(),tmp.size(),1,this->mFile);
fflush(this->mFile);
}
fprintf(this->mFile,wb.c_str(),wb.size());
}
bool file_existed(string path) {