gonvaled at gonvaled.com Guest
|
Posted: Tue Dec 09, 2014 4:24 am Post subject: [asterisk-users] Log to file in Asterisk: append with newlin |
|
|
Hi all,
(I am testing on Asterisk 11.7.0~dfsg-1ubuntu1)
I am using the following format to append to a logfile, according to the documentation: Quote: | same => n,Set(FILE(/tmp/mylog.txt,,,a)=my-log-message)
|
But this does not append a newline. So I am trying: Quote: | same => n,Set(FILE(/tmp/mylog.txt,,,al)=my-log-message)
|
But this does not append (instead, it just overwrites - surprisingly, since the documentation says that this should append!).
How can I append and make sure that a newline is added after the log message?
Thanks,
Daniel Gonzalez |
|