xash3d
xash3d copied to clipboard
Log
Log is not much enough configurable. We need to add ability to set log path, logrotate and maybe log channels.
sv_log implements it partially, but it is not connected with main log.
Should sv_log have all debug messages? sv_log itself used by third party apps, like HLStatsX. I think we shouldn't change it's behaviour.
But engine's log may be changed. The other problem that's engine log is used by game libs. How engine must re-group log messages if they are came from game libs?
game libs has own debug levels. D_SERVERAICONSOLE, D_SERVERCONSOLE, D_SERVERERROR - we may allocate separate debug channels which user can enable or disable in runtime.
http://cs-mapping.com.ua/forum/showpost.php?p=920857&postcount=326