# Template debugging - console output

**URL:** https://discourse.gohugo.io/t/template-debugging-console-output/29814
**Category:** Uncategorized
**Created:** [December 5, 2020, 10:12am UTC](https://discourse.gohugo.io/t/template-debugging-console-output/29814 "2020-12-05T10:12:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)
#### Post date: [December 5, 2020, 10:12am UTC](https://discourse.gohugo.io/t/template-debugging-console-output/29814/1 "2020-12-05T10:12:35Z")

</div>

Is there any way to generate console output from templates?  
I want to create warnings for wrong custom template use.

---

<div class="post-metadata">

### Author: ![fgandiya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/fgandiya/32/10119_2.png) [@fgandiya](https://discourse.gohugo.io/u/fgandiya)
#### Post date: [December 5, 2020, 6:12pm UTC](https://discourse.gohugo.io/t/template-debugging-console-output/29814/2 "2020-12-05T18:12:16Z")

</div>

Try errorf/warnf [https://gohugo.io/functions/errorf/#readout](https://gohugo.io/functions/errorf/#readout)

---

<div class="post-metadata">

### Author: ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)
#### Post date: [December 5, 2020, 6:19pm UTC](https://discourse.gohugo.io/t/template-debugging-console-output/29814/3 "2020-12-05T18:19:13Z")

</div>

🧐 missed it THANKS
