Disabled logging if user has not enabled it.