Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Newbe Log Ausgabe (gelöst)

    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

    Newbe Log Ausgabe (gelöst)

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

      Um ein JS zu debuggen, will ich was ins Log (Protokolle) schreiben
      Dazu habe ich 2 Befehle ausprobiert:

      log('hier bin ich'); 
      console.log('hier bin ich');
      

      Leider wird nichts ausgegeben.
      Schreibe ich aber:

      console.warn('hier bin ich');
      

      Sehe ich den Text unter Protokolle als Warning.
      Was muss ich machen, damit das auch mit "log" geht?

      DJMarc75 1 Reply Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @Int17 last edited by

        @int17 sagte in Newbe Log Ausgabe:

        Was muss ich machen, damit das auch mit "log" geht?

        indem Du das Loglevel des Adapters auf "Info" stellst 😉

        I 1 Reply Last reply Reply Quote 0
        • I
          Int17 @DJMarc75 last edited by

          @djmarc75
          steht bei mir auf debug, aber auch bei info kommt nix.

          liv-in-sky 1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @Int17 last edited by

            @int17

            console.log("warnung","warn")
            console.log("fehler","error")
            
            
            I 1 Reply Last reply Reply Quote 0
            • I
              Int17 @liv-in-sky last edited by

              @liv-in-sky
              Keine Ausgabe

              061d620c-99fb-469b-b0c8-8696031a5224-grafik.png

              90b6273d-1dc3-41f2-b0e8-696b0697666c-grafik.png

              12e90922-33f5-425b-95d9-e286c63fb945-grafik.png

              ba8c41b5-1712-4a70-b9b8-d2f20a281e5b-grafik.png

              liv-in-sky 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @Int17 last edited by liv-in-sky

                @int17

                sorry - probier mal das

                log("warnung","warn")
                log("fehler","error")
                 
                
                

                das ist ja richtig eingestellt ?

                Image 180.png

                Image 181.png

                I 1 Reply Last reply Reply Quote 1
                • I
                  Int17 @liv-in-sky last edited by Int17

                  @liv-in-sky

                  Also der Tipp den Loglevel anzupassen war schon mal zielführend, wobei "info" die Meldung nicht bringt:
                  klu_006.jpg
                  klu_004.jpg
                  klu_005.jpg

                  Erst wenn "debug" gewählt wird, erscheinen die Meldungen:
                  klu_009.jpg
                  klu_007.jpg
                  klu_008.jpg

                  Vielen Dank für die Hilfe.

                  liv-in-sky 2 Replies Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @Int17 last edited by

                    @int17

                    hast du da was angeklickt ?

                    Image 188.png

                    1 Reply Last reply Reply Quote 0
                    • liv-in-sky
                      liv-in-sky @Int17 last edited by

                      @int17

                      log("warnung","warn")
                      log("fehler","error")
                      log("info")
                       
                      
                      

                      Image 189.png

                      Image 190.png

                      I 1 Reply Last reply Reply Quote 1
                      • I
                        Int17 @liv-in-sky last edited by

                        @liv-in-sky
                        Hab den Adapter mal neu gestartet. Unter Maulschlüssel war nichts selektiert.
                        Ausgaben jetzt wie bei dir.
                        Danke für die Unterstützung.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        894
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        3
                        10
                        438
                        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