From 0cf24bc57733cf1c58e30ef31f4d1020488e3e98 Mon Sep 17 00:00:00 2001 From: ralongit Date: Sun, 22 Oct 2023 13:45:42 +0300 Subject: [PATCH] Updated Azure serverless function code sample titles --- _source/logzio_collections/_log-sources/dotnet.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_source/logzio_collections/_log-sources/dotnet.md b/_source/logzio_collections/_log-sources/dotnet.md index 887ea3357..ae2591bbc 100644 --- a/_source/logzio_collections/_log-sources/dotnet.md +++ b/_source/logzio_collections/_log-sources/dotnet.md @@ -323,7 +323,7 @@ namespace dotnet_log4net If you’re using a serverless function, you’ll need to call the appender's flush methods at the end of the function run to make sure the logs are sent before the function finishes its execution. You’ll also need to create a static appender in the Startup.cs file so each invocation will use the same appender. Make sure 'debug' is set to false if the function is deployed as it might cause permission issues with debug files. -###### Code sample +###### Azure serverless function code sample *Startup.cs* ```csharp using Microsoft.Azure.Functions.Extensions.DependencyInjection; @@ -611,7 +611,7 @@ LogManager.Configuration = config; If you’re using a serverless function, you’ll need to call the appender's flush methods at the end of the function run to make sure the logs are sent before the function finishes its execution. You’ll also need to create a static appender in the Startup.cs file so each invocation will use the same appender. Make sure 'debug' is set to false if the function is deployed as it might cause permission issues with debug files. -###### Code sample +###### Azure serverless function code sample *Startup.cs* @@ -965,7 +965,7 @@ hierarchy.Configured = true; If you’re using a serverless function, you’ll need to call the appender's flush methods at the end of the function run to make sure the logs are sent before the function finishes its execution. You’ll also need to create a static appender in the Startup.cs file so each invocation will use the same appender. Make sure 'debug' is set to false if the function is deployed as it might cause permission issues with debug files. -###### Code sample +###### Azure serverless function code sample *Startup.cs* ```csharp @@ -1167,7 +1167,7 @@ namespace Example If you’re using a serverless function, you’ll need to create a static appender in the Startup.cs file so each invocation will use the same appender. In the Serilog integration, you should use the 'WriteTo.LogzIo()' instad of 'WriteTo.LogzIoDurableHttp()' method as it uses in-memory buffering which is best practice for serverless functions. -###### Code sample +###### Azure serverless function code sample *Startup.cs* ```csharp