I'm using gSOAP on embedded Linux. I'm using Yocto so I added:
TARGET_CPPFLAGS += "-DDEBUG"
to the gsoap .bb recipe and that enabled logging. But what I get is three log files:
- \RECV.log contains messages received, concatenated
- \SENT.log contains messages sent, concatenated
- \TEST.log contains debugging information to identify issues
What I'd like is for the logging from TEST.log to appear in syslog alongside my application so I can see what's happening in chronological order. Is there a standard way of doing this or am I going to have to modify the source code directly?
There doesn't seem to be an existing way of doing this. I found this question log requests and responses but the plugin it mentions only saves the comms, not the logging.
So I've written my own patch. So far it's pretty basic but I'm including it here. It just prints all messages to syslog as
LOG_NOTICE, althoughDBGHEXisn't implemented.