melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle
Apache License 2.0
676 stars 87 forks source link

Prevent informational JMH messages for default Gradle log level #265

Closed snazy closed 3 months ago

snazy commented 7 months ago

Currently every JMH bytecode generation task run produces log messages like the following even if just the default "lifecycle" log level is being used.

> Task :jmhRunBytecodeGenerator
Processing 0 classes from .../build/classes/java/jmh with "reflection" generator
Writing out Java source to .../build/jmh-generated-sources and resources to .../build/jmh-generated-resources
Processing 0 classes from .../build/classes/java/test with "reflection" generator
Writing out Java source to .../build/jmh-generated-sources and resources to .../build/jmh-generated-resources

This change prevents these log messages unless Gradle's "info" (or finer grained) log level is being used.