switch on logging switch