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

Function restartlogging

source/src/server.cpp:4888–4898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4886SERVSTAT(stat_theadlog_peaklevel, 0, "lThreadlog peak fill level (0..100%)");
4887
4888void restartlogging()
4889{
4890 if(isdedicated)
4891 {
4892 exitlogging();
4893 string identity;
4894 if(scl.logident[0]) filtertext(identity, scl.logident, FTXT__LOGIDENT);
4895 else formatstring(identity)("%s#%d", scl.ip[0] ? scl.ip : "local", scl.serverport);
4896 initlogging(identity, scl.syslogfacility, logthreshold_console, logthreshold_file, logthreshold_syslog, scl.logtimestamp, scl.logfilepath);
4897 }
4898}
4899
4900void initserver(bool dedicated)
4901{

Callers 1

initserverFunction · 0.85

Calls 3

exitloggingFunction · 0.85
filtertextFunction · 0.85
initloggingFunction · 0.85

Tested by

no test coverage detected