Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Log to file in Asterisk: append with newline


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
gonvaled at gonvaled.com
Guest





PostPosted: Tue Dec 09, 2014 4:24 am    Post subject: [asterisk-users] Log to file in Asterisk: append with newlin Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services