2

Where console.log('') gets printed, if I don't have a local setup and working on code inside the browser.

Aliaksandr Sushkevich
  • 11,550
  • 7
  • 37
  • 44
Anam Nizami
  • 377
  • 1
  • 4
  • 22

2 Answers2

2

you can see the output in the Developer console. In Firefox and Chrome browsers for example - hit CTRL-SHIFT-I and it pops up - then go to ...Console..JS and you can see what you console.log() there

Beyond that (eg. client and runtime logs) see How do I see the logs for Fabric Composer

Paul O'Mahony
  • 6,740
  • 1
  • 10
  • 15
  • It works fine for online playground. But does not work when I run the local playground. Do I need to do something to get it working in local playground ? – Indrajit Kanjilal Feb 08 '18 at 11:37
1

Writing console.log in a Transaction can be used to debug and see the incoming and outgoing data. It can be viewed using developer options by pressing Ctrl+Shift+i in Chrome or Firefox.

But if you are using Composer Playground locally, then the log output is written to the Docker Container.

PrashantNagawade
  • 426
  • 1
  • 6
  • 24