How to show console logs of a packaged electron app


We are creating an electron application using Raspberry Pi device and a small touch screen, the problem that we can’t open the DevTools in a small screen,
We are using Xorg (startx) to run the electron package.
Is it possible to show the logs in the command line ?