Debug mode using logger