Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Azure serverless function code sample titles #2477

Merged
merged 1 commit into from
Oct 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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