Jump to content

Logging events to a file


widnerm

Recommended Posts

Posted

For a variety of reasons I'd like to create kind of a log file that I can write to through ISY programs. I can (and have) set up programs so the triggers I want send an email notification with all the right event details and variables to an email address I set up. So I have the conditions and tests and all that working.

 

The emailing part is a workaround though. What I really want is to log the contents of those emails into a file, which would look something like [mm/dd/yy hh:mm:ss] Event xyz occurred, etc. I'd settle for having it logged into the main ISY event log, although ideally I'd like it to be some other file.

 

Is there a way to do this entirely within the ISY? Would there be some way to do this with the Network module if I had some logger listening on some port on my internal network? I have other systems that are always on (or close enough).

Posted

You can do this using the built in notification system. There is a method to create and write to files on the ISY's webserver. See this link:

http://wiki.universal-devices.com/index ... tification

 

I do this using the network module to write to a log file on an external syslog server running on a RaspberryPi. I would have gone with the method above if it had been implemented sooner. The RPi method allows me greater flexibility since that is a full linux based system.

 

-Xathros

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.5k
×
×
  • Create New...