Announcement

Collapse
No announcement yet.

Suppress script statement in log

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Suppress script statement in log

    Is there a way to suppress logging of the hs.writelog command, so that I don't look in the log and see the command string, followed by the log entry with the same text? Kinda silly...


    Jim Speiser
    30-year veteran of Home Automation
    Still don't know squat

  • #2
    What happens if you check the box "Do not log this event" in the event options?
    Mike____________________________________________________________ __________________
    HS3 Pro Edition 3.0.0.548

    HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF, Rain8Net+ | RFXCOM | QSE100D | Vantage Pro | Green-Eye | X10: XTB-232, -IIR | Edgeport/8 | Way2Call | Ecobee3

    Comment


    • #3
      Originally posted by Uncle Michael View Post
      What happens if you check the box "Do not log this event" in the event options?
      Well, that works, of course. I'll just have to remember to turn off that option if I ever need to debug the event.

      So there's no special symbol to put in the command string that will suppress it's logging? That's kinda surprising. But this will work. Thanks!


      Jim Speiser
      30-year veteran of Home Automation
      Still don't know squat

      Comment


      • #4
        I think the fact that there isn't a "filter out" in the log window is sort of a shortcoming IMHO...

        You can do a regular expression... with this...

        ^(??!\bKeyword\b\s*).)*$

        Where Keyword being what you don't want to look at. Another option is to add a verbose switch to the script in question...
        HS3 Pro Edition 3.0.0.435 (Windows Server 8.1 on ESXi box)

        Plug-Ins Enabled:
        Z-Wave:,RaspberryIO:,AirplaySpeak:,Ecobee:,
        weatherXML:,JowiHue:,APCUPSD:,PHLocation:,Chromecast:,EasyTr igger:

        Comment


        • #5
          Originally posted by wpiman View Post
          I think the fact that there isn't a "filter out" in the log window is sort of a shortcoming IMHO...

          You can do a regular expression... with this...

          ^(??!\bKeyword\b\s*).)*$

          Where Keyword being what you don't want to look at. Another option is to add a verbose switch to the script in question...
          It's not a script, just a one-liner in the event. And I'm too old to mess with RegEx again, ties my brain into a pretzel. The above fix is fine for my purposes.


          Jim Speiser
          30-year veteran of Home Automation
          Still don't know squat

          Comment

          Working...
          X