core/play/src/main/java/play/http/DefaultHttpErrorHandler.java
protected void logServerError(RequestHeader request, UsefulException usefulException) {
    logger.error(
        String.format(
            "\n\n! @%s - Internal server error, for (%s) [%s] ->\n",
            usefulException.id, request.method(), request.uri()),
        usefulException);
  }
protected void logServerError(RequestHeader request, UsefulException usefulException) {
    logger.error(
        String.format(
            "\n\n! @%s - Internal server error, for (%s) [%s] ->\n",
            usefulException.id, request.method(), request.uri()),
        usefulException);
  }
Responsible for logging server errors.

<p>The base implementation uses a SLF4J Logger. If a special annotation is desired for internal
server errors, you may want to use SLF4J directly with the Marker API to distinguish server
errors from application errors.

<p>This can also be overridden to add additional logging information, eg. the id of the
authenticated user.

@param request The request that triggered the server error.
@param usefulException The server error.