1. not the complete function signature in the log
2. the location (PID/TID/file/line...) at the beginning
see 1 -DLOG_PRETTY_FUNCTION and 2 -DLOG_LOC_DATA_ATEND in Makefile.defs
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1879 8eb893ce-cfd4-0310-b710-fb5ebe64c474
info goes after the message)
* add thread ID to the logging facility API
* on linux, use gettid() syscall instead of pthread_self() for
thread ID
* convert syslog logging to a logging facility
* add possibility to disable syslog at compile-time (see
DISABLE_SYSLOG_LOG macro)
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1870 8eb893ce-cfd4-0310-b710-fb5ebe64c474
- print-msg.diff: create a string representation out of a AmSipRequest/~Reply; this can be used when an incoming message is discarded for some reason;
- log-thread-id.diff: with debug builds, log the thread ID as well: the process ID doesn't really help when trying to trace a call flow;
- di-arg-log.diff: when doing an DI call that fails, be more verbose about the reason (like what kind of argument is expected and what is received).
Patch by Bogdan Pintea.
- changed log format a li'l
- added NO_THREADID_LOG compile option to disable thread id logging
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1078 8eb893ce-cfd4-0310-b710-fb5ebe64c474
- changed AmArg to own the objects put into it to avoid nasty problems with pointers to short-lived objects becoming invalid
- implemented di_log plugin, a plugin able to output or dump to disk the last x lines of debug log messages
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@319 8eb893ce-cfd4-0310-b710-fb5ebe64c474