# Make \`console.log(...)\` output directly to the browser console

**URL:** <https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403>\
**Category:** Ideas & Features\
**Created:** [November 14, 2019, 6:29pm UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403 "2019-11-14T18:29:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex.mart](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/alex.mart/32/247_2.png) [@alex.mart](https://community.fibery.io/u/alex.mart)\
**Post date:** [November 14, 2019, 6:29pm UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/1 "2019-11-14T18:29:57Z")

</div>

is it possible to do? Make `console.log(...)` output directly to the console, where to find it in execute (according to the documentation [Fibery API](https://api.fibery.io/#debugging)), I still do not understand. In any case, it’s not very convenient to use and it’s much more logical to see the `console.log(...)` output in the browser console.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/072c0976c358941ebbd3928755b61d6a6dce1c9d.png)

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [November 14, 2019, 7:10pm UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/2 "2019-11-14T19:10:48Z")

</div>

Hello!  
Your suggestion to output to console looks logical. We will consider to implement this.  
According to your case (not seeing your logs in “execute” response) – probably condition `entity["Time Started"] !== null` was not passed in your case?

---

<div class="post-metadata">

**Author:** ![alex.mart](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/alex.mart/32/247_2.png) [@alex.mart](https://community.fibery.io/u/alex.mart)\
**Post date:** [November 14, 2019, 7:42pm UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/3 "2019-11-14T19:42:31Z")

</div>

No, it’s not because `entity [" Time Started "]! == null`, i checked up second time just now. Action is execute with right result, but `console.log` output does not seen in ‘Network tab’.

```auto
{"startedAt":"2019-11-14T19:36:45.971Z","duration":230,"cpu":20,"memory":1466368,"events":[{"type":"fibery_request/completed","title":"Commands fibery.schema/query => OK","commands":[{"command":"fibery.schema/query","args":{}}],"duration":131},{"type":"fibery_request/completed","title":"Commands fibery.command/batch => OK","commands":[{"command":"fibery.command/batch","args":{"commands":[{"command":"fibery.entity/update","args":{"type":"Software~Development/Task","entity":{"fibery/id":"24cffad0-d692-11e9-9d3b-218916a9e306","Software~Development/Timer Started":null,"Software~Development/Latest Time Entry":0.0071916666666666665,"Software~Development/Spent in hours":0.0071916666666666665}}}]}}],"duration":67}]}

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/1/1132a05ff157df15b8515a539332e8d0018c1a7b.png)

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [November 15, 2019, 10:02am UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/4 "2019-11-15T10:02:19Z")

</div>

I’ve setup entity structure similary to yours(as I see on your screenshots).  
Everything seems to work fine with console logs. By the way now console logs are written to browser console, just as you suggested. Just reload the page and it will work.

If the problem still exists for you (not seeing console logs), could you please send me your action button script, and I’ll check how it works for me?

---

<div class="post-metadata">

**Author:** ![cannibalflea](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cannibalflea/32/318_2.png) [@cannibalflea](https://community.fibery.io/u/cannibalflea)\
**Post date:** [June 18, 2021, 4:21am UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/5 "2021-06-18T04:21:11Z")

</div>

Sorry to revive this old thread. But I am wondering if something has changed under the hood with console.log()? I used to be able use this as described from action buttons previously but it no longer seems to work for neither the old nor the new action buttons. Am I missing something?

---

<div class="post-metadata">

**Author:** ![neal](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@neal](https://community.fibery.io/u/neal)\
**Post date:** [June 18, 2021, 5:11am UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/6 "2021-06-18T05:11:43Z")

</div>

> [@Console.log in Action Button not working](https://community.fibery.io/t/console-log-in-action-button-not-working/1683/5):
>
> but I guess you could update a ‘scratchpad’ text field for the entity as a workaround.

Above workaround might work.  
Neal

---

<div class="post-metadata">

**Author:** ![cannibalflea](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cannibalflea/32/318_2.png) [@cannibalflea](https://community.fibery.io/u/cannibalflea)\
**Post date:** [June 18, 2021, 6:45am UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/7 "2021-06-18T06:45:13Z")

</div>

I had no idea the activity log would contain the console.log() output. I should be reading these threads more carefully 🤦‍♂️

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [July 4, 2021, 10:25am UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/8 "2021-07-04T10:25:50Z")

</div>

Hello.  
We’ve fixed that issue and `console.log` should write to browser console as it was previously. Sorry for inconvenience.

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [May 6, 2022, 5:57pm UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/9 "2022-05-06T17:57:18Z")

</div>

Has this reverted? I am not seeing my script’s console.log messages in the DevTools console.

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [May 9, 2022, 8:27am UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/10 "2022-05-09T08:27:25Z")

</div>

Hello. I’ve checked on my workspace and it seems to work.  
Could you please send an example that does not work for you? Maybe there is something specific there.  
We didn’t change anything intentionally on our side.

---

<div class="post-metadata">

**Author:** ![Dimitri\_S](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/dimitri_s/32/1683_2.png) [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Post date:** [May 9, 2022, 5:27pm UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/11 "2022-05-09T17:27:39Z")

</div>

Works fine for me:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/3/3e659befdb5edff5980ced5ce4ab3a3bf888ded9.png)

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [May 10, 2022, 4:32pm UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/12 "2022-05-10T16:32:12Z")

</div>

Is this supposed to work with Automation Rules, or only Buttons?

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [May 11, 2022, 11:51am UTC](https://community.fibery.io/t/make-console-log-output-directly-to-the-browser-console/403/13 "2022-05-11T11:51:02Z")

</div>

Only for buttons, as we do not track on UI status of automation rules being executed.  
For buttons we show loader and wait till the response, where info about button execution is. So we can show these `console.log` statements in browser console.

For automation rules that contains script, I recommend to create a button first, and test script there. Later just copy script to a rule.  
The only thing is that input `args` for a rule can be a bit different, but once used to it should be ok as I think.
