• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MMM-LogExt

Scheduled Pinned Locked Moved System
4 Posts 3 Posters 727 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.
  • M Offline
    MMRIZE
    last edited by MMRIZE May 27, 2023, 7:42 PM May 26, 2023, 12:48 PM

    MMM-LogExt

    Log Extension module for MagicMirror

    screenshot

    Concept

    Many beginners have a problem tracing an unexpected issue when they run the MagicMirror.
    Usually, the start of debugging would be to examine backend-log and frontend-log but people may have confusing to use both how to.

    I know there already exists MMM-Logging to help with this issue, but it seems not maintained anymore, and I need more features, so I have to re-invent a wheel by myself.

    Features

    • To deliver frontend log (used by MM’s Log Object) to backend log
    • Customizable/Decorative Log messages
    • To monitor Notifications
    • window.error and unhandledRejection would be caught then be transmitted to the backend
    • To be able to log external messages from other programs or devices via HTTP request

    IMPORTANT : This module deliver only Log.xxx() to the backend, not console.xxx().

    https://github.com/MMRIZE/MMM-LogExt

    B 1 Reply Last reply May 26, 2023, 7:17 PM Reply Quote 4
    • B Offline
      BKeyport Module Developer @MMRIZE
      last edited by May 26, 2023, 7:17 PM

      @MMRIZE Curious - does this have any purpose other than prettying logs for PM2 users?

      The "E" in "Javascript" stands for "Easy"

      S M 2 Replies Last reply May 26, 2023, 7:26 PM Reply Quote 0
      • S Offline
        sdetweil @BKeyport
        last edited by May 26, 2023, 7:26 PM

        @BKeyport it merges the Dev window messages and the node_helper messages…

        pm2 doesn’t see the developers window messages (from the modulename.js Log(…) function

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • M Offline
          MMRIZE @BKeyport
          last edited by MMRIZE May 26, 2023, 10:02 PM May 26, 2023, 9:59 PM

          @BKeyport
          You can see the browser-side log in the backend (terminal or log file) without ‘npm run start:dev’ or dev-console of chromium.
          Frankly said, I’m a bit tired with always saying “open your dev-console and let’s see whether there be suspicious errors,… no, that is element tab, console tab is another, you can see those tabs in upper right side,… first you should have stopped the pm before,…” :D

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          1 / 1
          • First post
            1/4
            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