MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    console.log in getDom

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 5 Posters 2.3k Views 4 Watching
    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 Offline
      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.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        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

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 2
        • cowboysdudeC Offline
          cowboysdude 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
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer
            last edited by

            I’m gonna jump right in here, right after the two geniuses. :-)

            0_1509314057817_33.JPG

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • K Offline
              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.

              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @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 Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy