Skip to content

Commit

Permalink
Updated Azure serverless function code sample titles (#2477)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralongit authored Oct 22, 2023
1 parent 0a96f6f commit a2a5d8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _source/logzio_collections/_log-sources/dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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*

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a2a5d8b

Please sign in to comment.