# Logging output in unit tests with gradleApi dependency

**URL:** <https://discuss.gradle.org/t/logging-output-in-unit-tests-with-gradleapi-dependency/23135>\
**Category:** Help/Discuss\
**Created:** [June 29, 2017, 6:34pm UTC](https://discuss.gradle.org/t/logging-output-in-unit-tests-with-gradleapi-dependency/23135 "2017-06-29T18:34:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edigonzales](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/edigonzales/32/5858_2.png) [@edigonzales](https://discuss.gradle.org/u/edigonzales)\
**Post date:** [June 29, 2017, 6:34pm UTC](https://discuss.gradle.org/t/logging-output-in-unit-tests-with-gradleapi-dependency/23135/1 "2017-06-29T18:34:06Z")

</div>

Hi

We are developing some Gradle custom tasks. For logging we’re using slf4j. As long we do _not_ have the gradleApi dependency, logging in junit tests works as expected. Starting with the custom tasks and therefore in need of the gradleApi dependency only the messages for the error and warn logging levels are shown in the junit tests. Even with “gradle test -i”.

Any help is appreciated.

best regards  
Stefan
