Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    console.log in getDom

    Troubleshooting
    5
    6
    1693
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kiki99 last edited by

      Hi Forum 😉
      Is it possible, that console.log and log.Info does not work in getDom? I did not get any Output. Is there a way?

      Many Tanks fort each tip 🙂

      Best regards k.

      strawberry 3.141 1 Reply Last reply Reply Quote 0
      • strawberry 3.141
        strawberry 3.141 Project Sponsor Module Developer @kiki99 last edited by

        @kiki99 where did you check for logs? those ones are in the browser/electron window and not in the terminal as the ones in the nodehelper

        1 Reply Last reply Reply Quote 2
        • cowboysdude
          cowboysdude Project Sponsor Module Developer last edited by

          When you do a console log in the developer window it shows up there…

          When you do a console.log in node_helper it shows up in the terminal window that you loaded MM by using npm start…

          Hope that helps.

          1 Reply Last reply Reply Quote 1
          • Mykle1
            Mykle1 Project Sponsor Module Developer last edited by

            I’m gonna jump right in here, right after the two geniuses. 🙂

            0_1509314057817_33.JPG

            1 Reply Last reply Reply Quote 0
            • K
              kiki99 last edited by

              Okay, many thanks at first for that.

              But is there a way to get the output from the “console of the browser” when i start it via npm start? In the npm log there is nothing.

              It’s a bigger structure so i can’t simple add it to the wrapper, or can i? ;))

              Best Regards.

              Sean 1 Reply Last reply Reply Quote 0
              • Sean
                Sean Module Developer @kiki99 last edited by

                @kiki99
                I think it might be related with electron. You can pipe whole electron console output to file or others. But I didn’t test. Check this.
                https://github.com/dustinblackman/winston-electron/blob/master/README.md

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy