Hi again, This is the reworked patch series to add per-session logging to the FreeSWITCH core. Changes since V1: - Reworked based on second proposed method and feedback by Anthony - Most / all of mod_sofia has been converted to the new system (Needs a review, not sure if all of these changes are OK) Both patches are compile tested (only). Stefan Stefan Knoblich (2): Session log level #1: core support Session log level #2: convert mod_sofia as an example src/include/private/switch_core_pvt.h | 1 + src/include/switch_core.h | 15 +++ src/include/switch_types.h | 5 +- src/mod/applications/mod_commands/mod_commands.c | 37 ++++++ src/mod/applications/mod_dptools/mod_dptools.c | 19 +++ src/mod/endpoints/mod_sofia/mod_sofia.c | 74 ++++++------ src/mod/endpoints/mod_sofia/sofia.c | 96 ++++++++-------- src/mod/endpoints/mod_sofia/sofia_glue.c | 132 +++++++++++----------- src/switch_core_session.c | 15 +++ src/switch_log.c | 24 ++++- 10 files changed, 263 insertions(+), 155 deletions(-)