# How would one output \`Diagnostics\` inside a build command?

**URL:** <https://forums.swift.org/t/how-would-one-output-diagnostics-inside-a-build-command/56900>\
**Category:** Using Swift\
**Tags:** packagemanager, plugins\
**Created:** [April 22, 2022, 3:22pm UTC](https://forums.swift.org/t/how-would-one-output-diagnostics-inside-a-build-command/56900 "2022-04-22T15:22:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![valentinradu](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/valentinradu/32/23005_2.png) [@valentinradu](https://forums.swift.org/u/valentinradu)\
**Post date:** [April 22, 2022, 3:22pm UTC](https://forums.swift.org/t/how-would-one-output-diagnostics-inside-a-build-command/56900/1 "2022-04-22T15:22:13Z")

</div>

It seems like they're meant to be used only from the plugin itself and not the build command tool? If so, it severely limits their usefulness since most of the time the build command tool outputs the most important info. Is this the case?

---

<div class="post-metadata">

**Author:** ![doozMen](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/doozmen/32/7803_2.png) [@doozMen](https://forums.swift.org/u/doozMen)\
**Post date:** [July 28, 2022, 10:55am UTC](https://forums.swift.org/t/how-would-one-output-diagnostics-inside-a-build-command/56900/2 "2022-07-28T10:55:58Z")

</div>

Not sure what you mean but you can find the output of the build tool inside xcodes tab build output. Look for apply plugin ... or ran custom plugin. Then you have to click on that line to expand the logs the tool has output. Is this what you mean?
