LeagueSandbox / GameServer

League Sandbox's Game Server
GNU Affero General Public License v3.0
1.06k stars 433 forks source link

Output a stack trace of unhandled exceptions to a log file #1482

Closed Killfrra closed 2 years ago

Killfrra commented 2 years ago

Otherwise, it is difficult to debug the server, having access only to the logs. _logger.Error(e) -> _logger.Error(null, e) + Fatal in GameServerConsole.Program.Main just in case everything goes wrong

//     WARNING Note that passing an System.Exception to this method will print the name
//     of the System.Exception but no stack trace. To print a stack trace use the Error(object,Exception)
//     form instead.
void Error(object message);

-- From log4net.ILog