Introduce `ILOG_SDLG()` call-id logging based on
specific getter provided to the macro func as a param.
This is required for those implementations,
where there is no within-file common dialog id getter.
Change-Id: I90501a0da32c7b8075e181796cf4c7c3f980e81e
Make the way we get call-id when calling ILOG_DLG()
file specific, which allows to define locally
(within a target file) how to get the call-id value.
Change-Id: I4af87edf9d1ea52d9678b3354bc797cf1f5f0b54
Introduce `ILOG_DLG()` call-id logging based on `dlg`.
This commit only introduces a usage of it for
CallLeg and SBCCallLeg classes.
Later commits will spread this usage over all
AmB2BSession based classes.
Change-Id: I18ad8ba5129cb8912f401bb089ad82dbf9909a18
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
The patch is developed on FreeBSD 4.11-RELEASE and gcc 2.95.4, but is
expected to run on other BSD systems as well.
Note that it is "not done" to replace the gcc in a BSD base system,
hence the support for an older gcc.
The changes are minor:
* corrections in typing matters, including more header files
* alternative handling option for varargs in #define for pre-GCC3
* lowering the default UNIX_PATH_MAX value to 104 instead of 108
* clearing memory intended to store socket addresses
* a few remarks for FreeBSD-adopters and/or porters
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@39 8eb893ce-cfd4-0310-b710-fb5ebe64c474