fix logging for protocols, wmi, and most of webapp