MagicMirror Forum

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

    SOLVED Log.log message not being displayed

    Troubleshooting
    3
    5
    501
    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
      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
        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

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • A
          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
            sdetweil @Adman last edited by

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

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • R
              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy