Author |
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: October 13 2012 at 13:17 | IP Logged
|
|
|
Hey Guys,
I created this formula (to start with):
ph_writefile ("c:\logs\ph.log",0,string(today(),"yyyy-mm-dd hh:mm:ss") + if( [X10STATQ11] = 1, ' Bijkeukendeur: Open', ' Bijkeukendeur: Gesloten')+ if( [X10STATQ10] = 1, ' IRBijkeuken: Geen beweging', ' IRBijkeuken: Beweging')+ if( [X10STATQ10] = 1, ' IR-Huiskamer: Beweging', ' IR-Huiskamer: Geen Beweging'))
I want a New Line everytime there is a new entry in the log... how do I do this?
Peter
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: October 13 2012 at 19:09 | IP Logged
|
|
|
Peter,
CR = "~r", LF = "~n", tab = "~t". Your formula should look like this:
ph_writefile ("c:\logs\ph.log",0,string(today(),"yyyy-mm-dd hh:mm:ss") + if( [X10STATQ11] = 1, ' Bijkeukendeur: Open', ' Bijkeukendeur: Gesloten')+ if( [X10STATQ10] = 1, ' IRBijkeuken: Geen beweging', ' IRBijkeuken: Beweging')+ if( [X10STATQ10] = 1, ' IR-Huiskamer: Beweging', ' IR-Huiskamer: Geen Beweging') + "~r~n")
Dave.
|
Back to Top |
|
|
|
|