fix: fail build on WARN/ERROR log events via internal logging hook Use Gradle 8.x’s internal logging API to abort the build if any log event of severity WARN or higher is emitted. This helps prevent harmless warnings from blocking Log4j adoption in strict environments. ⚠️ This approach relies on unsupported APIs and may break with Gradle 9.x, but it is currently the most effective option.