MagicMirror² DocsMagicMirror² Docs
Donate
Discord
Forum
GitHub
Donate
Discord
Forum
GitHub
  • Getting Started

    • Introduction
    • Requirements
    • Installation & Usage
    • Upgrade Guide
  • Configuration

    • Introduction
    • Autostart your MagicMirror²
    • Raspberry Specific
  • Modules

    • Introduction
    • Module Configuration
    • Default Modules

      • Alert
      • Calendar
      • Clock
      • Compliments
      • Hello World
      • News Feed
      • Update Notification
      • Weather Module
    • Animation Guide
  • Module Development

    • Introduction
    • The Core module file
    • The Node Helper
    • MagicMirror Helper Methods
    • Logger
    • Notifications
    • Weather Module Weather Provider Development
    • How to write good documentation
  • About

    • MagicMirror² Manifesto
    • Contributing Guidelines
    • Donate
    • Support
    • License

Logger

The MagicMirror contains a convenience wrapper for logging. Currently, this logger is a simple proxy to the original console.log methods. But it might get additional features in the future.

Examples:

Log.info("info");
Log.log("log");
Log.error("error");

By default, the logger is only available in the core module file. If you want to use the logger in the node_helper.js, you have to add it by inserting the following line at the beginning of the file:

const Log = require("logger");

Remember: Much of the JavaScript code is run in the electron front-end or browser, so check the those consoles for log output as well.

Help us improve this page!
Last Updated:: 4/30/25, 8:00 PM
Prev
MagicMirror Helper Methods
Next
Notifications