moved all logging stuff on one place

the previous functions were deprecated and should be updated in all modules, some
cleanup was also added in bouncer code