# How to output stderr in the cmd console stream?

**URL:** <https://discuss.gradle.org/t/how-to-output-stderr-in-the-cmd-console-stream/30538>\
**Category:** Help/Discuss\
**Tags:** plugins, gradle-core, issue-resolved, not-a-bug\
**Created:** [February 12, 2019, 5:38am UTC](https://discuss.gradle.org/t/how-to-output-stderr-in-the-cmd-console-stream/30538 "2019-02-12T05:38:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleksey\_p](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@aleksey\_p](https://discuss.gradle.org/u/aleksey_p)\
**Post date:** [February 12, 2019, 5:38am UTC](https://discuss.gradle.org/t/how-to-output-stderr-in-the-cmd-console-stream/30538/1 "2019-02-12T05:38:03Z")

</div>

My tests run like this  
gradlew testAll -Ptarget=local clean test 1\>out.log 2\>err.log

but output in the err.log doesn’t meet my requirements. I want to see all failed tests like in html report. How i can resolve it without gradle tooling api?

2 tests completed, 2 failed

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ‘:testAll’.

> There were failing tests. See the report at: file:///xxxx/xxxx/xxx

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
- Get more help at [https://help.gradle.org](https://help.gradle.org)  
BUILD FAILED in 51s

---

<div class="post-metadata">

**Author:** ![aleksey\_p](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@aleksey\_p](https://discuss.gradle.org/u/aleksey_p)\
**Post date:** [February 21, 2019, 4:36am UTC](https://discuss.gradle.org/t/how-to-output-stderr-in-the-cmd-console-stream/30538/2 "2019-02-21T04:36:20Z")

</div>

I’ve found solution here [std error](https://github.com/gradle/gradle/issues/1884)
