Added logger
Now a switch levels is work correct