Log Hostname Within Server Error Log


Well-known member
For environments with multiple web servers, it's a pain trying to figure out *what* web server is triggering server errors from the XenForo Server Error Log.

For example it would be super handy to know *which* web server was having a corrupted opcache going on, because you know, PHP trying to allocate 8.7GB for a function is totally normal (lol). :)



Well-known member
I do a tiny code edit to insert the hostname into the logging details in XenForo_Error, but it would be good for that to be part of the core.

The Server Error log already contains privileged information, gated by an administrator permission, so a hostname isn't much extra.