enable logging mode