# CLI Log to file not functional

**URL:** <https://forum.rasa.com/t/cli-log-to-file-not-functional/10598>\
**Category:** Rasa Open Source\
**Created:** [May 29, 2019, 11:48am UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598 "2019-05-29T11:48:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuorhador](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tuorhador](https://forum.rasa.com/u/tuorhador)\
**Post date:** [May 29, 2019, 11:48am UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/1 "2019-05-29T11:48:45Z")

</div>

When using Rasa CLI’s --log-file option, the log file is created but nothing gets written to it. I have tried using --debug option as well.

When using --debug, the debug message are being displayed on the screen but not written into the log file.

---

<div class="post-metadata">

**Author:** ![harshitc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/harshitc/32/3170_2.png) [@harshitc](https://forum.rasa.com/u/harshitc)\
**Post date:** [May 29, 2019, 12:21pm UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/2 "2019-05-29T12:21:28Z")

</div>

@tuorhador try replacing the “-” with an underscore “\_” i.e --log\_file

---

<div class="post-metadata">

**Author:** ![tuorhador](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tuorhador](https://forum.rasa.com/u/tuorhador)\
**Post date:** [May 29, 2019, 12:23pm UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/3 "2019-05-29T12:23:17Z")

</div>

Actually as part of migration guiide it explicitly mentions that underscores in script parameters have been changed to hyphens…

---

<div class="post-metadata">

**Author:** ![harshitc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/harshitc/32/3170_2.png) [@harshitc](https://forum.rasa.com/u/harshitc)\
**Post date:** [May 29, 2019, 12:27pm UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/4 "2019-05-29T12:27:09Z")

</div>

Ohh. I forget about the new version, my bad. BTW i am using core 0.13.3. Which version are you using? I can check and let you know if I can get something.

---

<div class="post-metadata">

**Author:** ![tuorhador](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tuorhador](https://forum.rasa.com/u/tuorhador)\
**Post date:** [May 29, 2019, 12:28pm UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/5 "2019-05-29T12:28:19Z")

</div>

I am trying out the recently release v1.0, CLI is packaged as part of that release.

---

<div class="post-metadata">

**Author:** ![harshitc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/harshitc/32/3170_2.png) [@harshitc](https://forum.rasa.com/u/harshitc)\
**Post date:** [May 30, 2019, 4:47am UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/6 "2019-05-30T04:47:01Z")

</div>

Hi @tuorhador, the --log-file argument isn’t working for me too and I don’t know if I am doing something wrong here or it is a bug as I am not using the latest version for my work. Please ask rasa team, they can assist you better.

---

<div class="post-metadata">

**Author:** ![tuorhador](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tuorhador](https://forum.rasa.com/u/tuorhador)\
**Post date:** [May 31, 2019, 6:32am UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/7 "2019-05-31T06:32:58Z")

</div>

Sure, thanks for the effort.

A question, you say ask RASA team, for this do I need to do something extra to draw their attention to the issue or just leave the issue out here for someone from their team to pickup when they can?

---

<div class="post-metadata">

**Author:** ![Tanja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tanja/32/4696_2.png) [@Tanja](https://forum.rasa.com/u/Tanja)\
**Post date:** [May 31, 2019, 10:26am UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/8 "2019-05-31T10:26:30Z")

</div>

@tuorhador Thanks for reporting this. It is indeed a bug. The argument `log-file` is never used in the code. I created an [issue](https://github.com/RasaHQ/rasa/issues/3670) on GitHub. We will fix it as soon as possible.

---

<div class="post-metadata">

**Author:** ![harshitc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/harshitc/32/3170_2.png) [@harshitc](https://forum.rasa.com/u/harshitc)\
**Post date:** [May 31, 2019, 10:33am UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/9 "2019-05-31T10:33:42Z")

</div>

There are too many queries on this forum and sometimes a query or two are left unattended by experts.So, I will suggest you to either create an issue over the [github repo](https://github.com/rasaHQ/rasa/issues) as this seems a bug to me or to get someone’s attention here, you can specifically mention them using `@` .

---

<div class="post-metadata">

**Author:** ![tuorhador](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tuorhador](https://forum.rasa.com/u/tuorhador)\
**Post date:** [June 3, 2019, 9:05am UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/10 "2019-06-03T09:05:39Z")

</div>

I did get a response, and a github issue has been created. Thanks for your help @harshitc .

---

<div class="post-metadata">

**Author:** ![tuorhador](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tuorhador](https://forum.rasa.com/u/tuorhador)\
**Post date:** [June 3, 2019, 9:07am UTC](https://forum.rasa.com/t/cli-log-to-file-not-functional/10598/11 "2019-06-03T09:07:08Z")

</div>

Thanks @Tanja
