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.

    Log.log message not being displayed

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 3 Posters 919 Views 3 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.
    • A Offline
      Adman
      last edited by Adman

      Hello, I’m trying to log debug messages using Log.log from my module, but the message is not being displayed in terminal. However, logging using console.log in node_helper works.
      Is there anything I’m not doing right ?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Adman
        last edited by

        @Adman No. Log.log is the module side, console.log is the node_helper side.

        For module side, open the developers window, ctrl-shift-i, and select the tab labeled console

        There is no way to see the combined log

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • A Offline
          Adman
          last edited by

          Thanks, did not realize that the message is not being forwarded to terminal :)

          S R 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @Adman
            last edited by

            @Adman Yeh. The module code is running in the browser, and it doesn’t have a stdout handle

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              retroflex Project Sponsor Module Developer @Adman
              last edited by

              @Adman https://github.com/shbatm/MMM-Logging might be worth looking in to. I don’t remember exactly how you can set it up, but I think you can get both module and node messages together somehow.

              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