| 1182 | #endif |
| 1183 | |
| 1184 | void initclientlog() // rotate old logfiles and create new one |
| 1185 | { |
| 1186 | filerotate("clientlog", "txt", 5); // keep five old logfiles |
| 1187 | clientlogfile = openfile("clientlog.txt", "w"); |
| 1188 | if(clientlogfile) |
| 1189 | { |
| 1190 | if(bootclientlog && bootclientlog->length()) clientlogfile->write(bootclientlog->getbuf(), bootclientlog->length()); |
| 1191 | } |
| 1192 | else conoutf("could not create logfile \"%s\"", findfile("clientlog.txt", "w")); |
| 1193 | DELETEP(bootclientlog); |
| 1194 | } |
| 1195 | |
| 1196 | #ifdef _DEBUG |
| 1197 | void sanitychecks() |