# Adding custom prints/Info logs in code

**URL:** https://forums.mobyproject.org/t/adding-custom-prints-info-logs-in-code/422
**Category:** Support
**Created:** [May 25, 2019, 1:44pm UTC](https://forums.mobyproject.org/t/adding-custom-prints-info-logs-in-code/422 "2019-05-25T13:44:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nick24](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@nick24](https://forums.mobyproject.org/u/nick24)
#### Post date: [May 25, 2019, 1:44pm UTC](https://forums.mobyproject.org/t/adding-custom-prints-info-logs-in-code/422/1 "2019-05-25T13:44:05Z")

</div>

Hi,

In order to better understand the Docker code flow, I’d like to add some print statements which I can see on output later when I issue commands from cli. I first tried the usual fmt.Println() but it didn’t work. I followed the docker development container procedure as documented under moby’s contributing guidelines. Is there a common or standard way of adding prints/info logs?

---

<div class="post-metadata">

### Author: ![cpuguy83](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.mobyproject.org/cpuguy83/32/22_2.png) [@cpuguy83](https://forums.mobyproject.org/u/cpuguy83)
#### Post date: [May 25, 2019, 3:52pm UTC](https://forums.mobyproject.org/t/adding-custom-prints-info-logs-in-code/422/2 "2019-05-25T15:52:23Z")

</div>

Are you using the modified cli? moby/moby pulls in an old cli.

fmt.Println should be fine.

Brian Goff
