How to write log/txt file
Posted: 27 Jul 2016 21:06
Hi Bernd,
I want to create my 'custom' logfile. So, I want to write an rule to an .txt file with an command, so I can choose my own text.
Example:
27-7-2016 21:01:22 - Silence detection has detected an silence of 30 seconds.
27-7-2016 21:05:42 - Silence detection has detected noise again.
27-7-2016 21:06:24 - User Pietje has logged in
27-7-2016 21:50:24 - User Pietje has logged out.
I know that I can write text to an .txt file with the EXEC_WRITE_FILE command. But If I use it, it only stores the line and remove the earlier line. I want to store the new line in the .txt file, but not deleting the other content in the file. How could I do this?
Remi
I want to create my 'custom' logfile. So, I want to write an rule to an .txt file with an command, so I can choose my own text.
Example:
27-7-2016 21:01:22 - Silence detection has detected an silence of 30 seconds.
27-7-2016 21:05:42 - Silence detection has detected noise again.
27-7-2016 21:06:24 - User Pietje has logged in
27-7-2016 21:50:24 - User Pietje has logged out.
I know that I can write text to an .txt file with the EXEC_WRITE_FILE command. But If I use it, it only stores the line and remove the earlier line. I want to store the new line in the .txt file, but not deleting the other content in the file. How could I do this?
Remi