No announcement yet.

Way to trap WriteLogs?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Way to trap WriteLogs?

    Is there a event/callback/... that can be used to capture log messages in real-time? We are trying to get more information on some error messages that come rarely out of the system. Being able to trap the error messages and collect information about system and device status at the time of the error would be helpful.

  • #2
    You have two options, option one is to write a plugin and you can get a callback into your plugin whenever an update is sent to the HS log. This AFAIK is the only option to get a live time update of the HS log. The second option is that of reading the log at a recurring interval in a script (, you will get exactly the same data just not at the exact time the information is sent to the log.
    My Plugins:

    Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
    Yeelight 3P | Nanoleaf 3P