Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. scripte - warum funktioniert console.info eigentlich nicht?

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    scripte - warum funktioniert console.info eigentlich nicht?

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

      console.debug - geht
      console.warn - geht
      console.debug - geht
      console.info - geht nicht
      Bin im stable, node 12.22.6

      try { 
          console.info('info');
      } catch (error){
          log(`Unexpected error - ${error}`, 'error');
      }
      console.error('error');
      console.debug('debug');
      console.warn('warn');
      log('info1', 'info');
      
      

      Ausgabe

      javascript.0
      	2021-09-05 12:05:04.475	info	script.js.Test.console: registered 0 subscriptions and 0 schedules
      javascript.0
      	2021-09-05 12:05:04.474	info	script.js.Test.console: info1
      javascript.0
      	2021-09-05 12:05:04.474	warn	script.js.Test.console: warn
      javascript.0
      	2021-09-05 12:05:04.474	debug	script.js.Test.console: debug
      javascript.0
      	2021-09-05 12:05:04.474	error	script.js.Test.console: error
      javascript.0
      	2021-09-05 12:05:04.473	error	script.js.Test.console: Unexpected error - TypeError: console.info is not a function
      
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @ente34 last edited by

        @ente34 sagte: console.info - geht nicht

        console.log
        
        E 1 Reply Last reply Reply Quote 0
        • E
          ente34 @paul53 last edited by

          @paul53

          Sorry, in der node-Doku überlesen

          console.info([data][, ...args])

          Added in: v0.1.100

          data <any>
          ...args <any>
          

          The console.info() function is an alias for console.log().

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

          Support us

          ioBroker
          Community Adapters
          Donate

          574
          Online

          31.8k
          Users

          80.0k
          Topics

          1.3m
          Posts

          2
          3
          464
          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