new log mechanism: got rid of is_logging_enabled. Will use a special log level for this.