Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Javascript findet onLog() nicht

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Javascript findet onLog() nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Chris_B last edited by

      Kurze Frage: Ich möchte in einem Script die Funktion onLog() verwenden.
      Diese ist dokumentiert, bei mir ist die Funktion aber nicht verfügbar. Beispiel:

      function logHandler(data) {
          console.error('Error: ' + data.message);
      }
      const id = onLog('warn', logHandler);
      

      Ergibt bei mir einen Fehler bei onLog().
      Verwende Node.js V10.18.0.
      Fehlt mir ein NPM Momdul??
      Danke für einen Hinweis!

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Chris_B last edited by

        @Chris_B sagte:

        Ergibt bei mir einen Fehler bei onLog().

        onLog() ist erst ab Javascript 4.3.0 verfügbar.

        1 Reply Last reply Reply Quote 0
        • C
          Chris_B last edited by

          Danke, siehe meine Antwort im anderen Thread...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          973
          Online

          31.7k
          Users

          79.6k
          Topics

          1.3m
          Posts

          javascript
          2
          3
          305
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo