removed unused local typedef
fixed CPPA_LOG_*_IF macros

all macros now consider the correct log level
added missing include
removed unused local typedef
removed unused local typedef + code cleanup