access log and messages with newlines
fxfg fdgdfgdfgdfg <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi. If SMS contains newlines, it breaks "one line for event" rule For example : 2005-11-03 22:18:06 Receive SMS [SMSC:AT2[/dev/ttyS0]] [SVC:] [ACT:] [BINF:] [from:48607548996] [to:1234] [flags:-1:0:-1:0:-1] [msg:29:Decide to: AA)Pass AB)Hold AC)Wait] [udh:0:] I am using software that is parsing new lines from access.log (using something like unix tail -f) and it doesnt work with messages containing newlines. Is it hard to make a patch that will remove all newlines from message "body" before appending to log file, so it will be only one log line: 2005-11-03 22:18:06 Receive SMS [SMSC:AT2[/dev/ttyS0]] [SVC:] [ACT:] [BINF:] [from:48607548996] [to:1234] [flags:-1:0:-1:0:-1] [msg:29:Decide to: AA)Pass AB)Hold AC)Wait] [udh:0:] Sorry, but i am not a C codder:( Thank you very much in advance for any help and please forgive me my terrible english.