logging in switch-module