log and datasource defined