# How can I print logs in the Module.Build.cs file

**URL:** <https://forums.unrealengine.com/t/how-can-i-print-logs-in-the-module-build-cs-file/454831>\
**Category:** Modding\
**Tags:** buildcs, unreal-engine, log, question\
**Created:** [September 4, 2019, 2:59am UTC](https://forums.unrealengine.com/t/how-can-i-print-logs-in-the-module-build-cs-file/454831 "2019-09-04T02:59:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![penggao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@penggao](https://forums.unrealengine.com/u/penggao)\
**Post date:** [September 4, 2019, 2:59am UTC](https://forums.unrealengine.com/t/how-can-i-print-logs-in-the-module-build-cs-file/454831/1 "2019-09-04T02:59:13Z")

</div>

I tried Console.writeline() and Log.TraceInformation(), but neither of them can work? Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Scienziatogm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scienziatogm/32/906600_2.png) [@Scienziatogm](https://forums.unrealengine.com/u/Scienziatogm)\
**Post date:** [May 8, 2021, 2:12pm UTC](https://forums.unrealengine.com/t/how-can-i-print-logs-in-the-module-build-cs-file/454831/2 "2021-05-08T14:12:54Z")

</div>

Include Tools.DotNETCommon at the top of your Build.cs file:

```
using Tools.DotNETCommon

```

then you can use Log.TraceInformation or Log.TraceWarning like this:

```
Log.TraceWarning("My log with a parameter: {0}", MyParameter);
```
