added enable_logging convenience function