enum switch in logger factory