void (String message, @Nullable Throwable t, String @NotNull ... details) { String fullMessage = details.length > 0 ? message + "\nDetails: " + String.join("\n", details) : message; myLogger.log(java.util.logging.Level.SEVERE, fullMessage, t); }