diff --git a/src/Dan.Plugin.DATASOURCENAME/Dan.Plugin.DATASOURCENAME.csproj b/src/Dan.Plugin.DATASOURCENAME/Dan.Plugin.DATASOURCENAME.csproj
index bc201de..f99047f 100644
--- a/src/Dan.Plugin.DATASOURCENAME/Dan.Plugin.DATASOURCENAME.csproj
+++ b/src/Dan.Plugin.DATASOURCENAME/Dan.Plugin.DATASOURCENAME.csproj
@@ -5,8 +5,8 @@
Exe
-
-
+
+
diff --git a/src/Dan.Plugin.DATASOURCENAME/Plugin.cs b/src/Dan.Plugin.DATASOURCENAME/Plugin.cs
index f5635fd..986d122 100644
--- a/src/Dan.Plugin.DATASOURCENAME/Plugin.cs
+++ b/src/Dan.Plugin.DATASOURCENAME/Plugin.cs
@@ -48,6 +48,8 @@ public Plugin(
_logger = loggerFactory.CreateLogger();
_settings = settings.Value;
_evidenceSourceMetadata = evidenceSourceMetadata;
+
+ _logger.LogDebug("Initialized plugin! This should be visible in the console");
}
[Function(SimpleDatasetName)]
@@ -55,6 +57,11 @@ public async Task GetSimpleDatasetAsync(
[HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequestData req,
FunctionContext context)
{
+
+ _logger.LogDebug("debug HERE");
+ _logger.LogWarning("warning HERE");
+ _logger.LogError("error HERE");
+
var evidenceHarvesterRequest = await req.ReadFromJsonAsync();
return await EvidenceSourceResponse.CreateResponse(req,
@@ -97,7 +104,7 @@ private async Task> GetEvidenceValuesRichDataset(EvidenceHar
// dataset model.
//
// Another way to do this is to not generate the schema from the model, but "hand code" the schema in the metadata and validate the
- // received JSON against it, throwing eg. a EvidenceSourcePermanentServerException if it fails to match.
+ // received JSON against it, throwing eg. a EvidenceSourcePermanentServerException if it fails to match.
ecb.AddEvidenceValue("default", JsonConvert.SerializeObject(exampleModel), SourceName);
return ecb.GetEvidenceValues();
diff --git a/src/Dan.Plugin.DATASOURCENAME/worker.json b/src/Dan.Plugin.DATASOURCENAME/worker.json
new file mode 100644
index 0000000..56eb4e5
--- /dev/null
+++ b/src/Dan.Plugin.DATASOURCENAME/worker.json
@@ -0,0 +1,13 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Function": "Debug"
+ },
+ "ApplicationInsights": {
+ "SamplingSettings": {
+ "IsEnabled": false
+ }
+ }
+ }
+}