MCPcopy Create free account
hub / github.com/assaultcube/AC / initclientlog

Function initclientlog

source/src/main.cpp:1184–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182#endif
1183
1184void 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
1197void sanitychecks()

Callers 1

main.cppFile · 0.85

Calls 7

filerotateFunction · 0.85
openfileFunction · 0.85
findfileFunction · 0.85
conoutfFunction · 0.70
lengthMethod · 0.45
writeMethod · 0.45
getbufMethod · 0.45

Tested by

no test coverage detected