I want to disable the sonar analysis logs during mvn test coming from the
below plugin.

<plugin>
  <groupId>org.sonarsource.scanner.maven</groupId>
  <artifactId>sonar-maven-plugin</artifactId>
  <version>3.9.1.2184</version>

</plugin>

As per this discussion
<https://community.sonarsource.com/t/turn-off-console-logging-sonar-log-level/45771/3?u=tuk>
sonar does not support this. So I tried the solution suggested here
<https://stackoverflow.com/a/49035439/785523> to change log level of a
maven plugin by passing
-Dorg.slf4j.simpleLogger.log.org.apache.maven.plugins.sonar=warn with mvn
test. But it is not working and I am still seeing INFO logs like below

2022-11-08T15:51:02.8677442Z [INFO] Sensor SurefireSensor [java]
2022-11-08T15:51:02.8678035Z [INFO] parsing
[/codebuild/output/src270901131/src/
github.com/Spotnana-Tech/spotnana/src/java/back-office/target/surefire-reports
]
2022-11-08T15:51:02.8678621Z [INFO] Sensor SurefireSensor [java] (done) |
time=41ms

I know the above question is not directly related to maven. But if anyone
has any suggestions it is welcome.

Reply via email to