Daniel Gonzalez
2014-Dec-09 09:23 UTC
[asterisk-users] Log to file in Asterisk: append with newline
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 <http://www.voip-info.org/wiki/view/Asterisk+func+FILE>: same => n,Set(FILE(/tmp/mylog.txt,,,a)=my-log-message) But this does not append a newline. So I am trying: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141209/6063afa8/attachment.html>
Maybe Matching Threads
- Show Log(NOTICE) messages on the console
- [Bug 1196] New: nft does not allow comments within sets: Error: syntax error, unexpected newline
- IRC question: appending newline to end of file
- Booting virtual machines automatically
- [PATCH] Large log output does not print newline