Skip to content

Commit aa3e101

Browse files
committed
4.0.5
1 parent cfdf25b commit aa3e101

File tree

6 files changed

+35
-19
lines changed

6 files changed

+35
-19
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changes
22

3+
### 4.0.5 10/30/2024
4+
- Updated Nugets to the latest versions for all dependencies. There was a security vulnerability in System.Text.Json that has been addressed by updating.
5+
36
### 4.0.3 08/20/2024
47
- Changed constructors using a managedIdentityClientId to make it optional. If not provided, the sink will use the default Azure credential chain.
58
- Updated Nugets for Serilog and Azure.Storage.Blobs to the latest versions.

samples/SampleConsoleApp/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using Microsoft.Extensions.Hosting;
44
using Serilog;
55
using Serilog.Events;
6+
using System.Diagnostics;
67

78
namespace SampleConsoleApp
89
{
@@ -31,6 +32,8 @@ static async Task<int> Main(string[] args)
3132
)
3233
.Build();
3334

35+
Serilog.Debugging.SelfLog.Enable(msg => Debug.WriteLine(msg));
36+
3437
await app.RunAsync();
3538

3639
return 0;

samples/SampleConsoleApp/SampleConsoleApp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
21+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
2222
<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0" />
23-
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.2" />
23+
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.4" />
2424
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
2525
</ItemGroup>
2626

samples/SampleConsoleApp/appsettings.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,27 @@
1010
"Args": {
1111
"outputTemplate": "{Timestamp:HH:mm:ss.fff} [{Level:u3}] {Message:lj}{NewLine}{Exception}"
1212
}
13-
},
14-
{
15-
"Name": "AzureBlobStorage",
16-
"Args": {
17-
"connectionString": "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;",
18-
"storageContainerName": "logs",
19-
"storageFileName": "{HH}-{mm}-{Level}-log.txt",
20-
"period": "00:01:30",
21-
"retainedBlobCountLimit": 4
22-
}
2313
}
14+
//{
15+
// "Name": "AzureBlobStorage", //example of using connection string
16+
// "Args": {
17+
// "connectionString": "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;",
18+
// "storageContainerName": "logging",
19+
// "storageFileName": "{HH}-{mm}-{Level}-log.txt",
20+
// "period": "00:00:10",
21+
// "retainedBlobCountLimit": 4
22+
// }
23+
//},
24+
//{
25+
// "Name": "AzureBlobStorage", //example of using managed identity
26+
// "Args": {
27+
// "storageAccountUri": "https://xxxxxxxxxxx.blob.core.windows.net",
28+
// "storageContainerName": "logging",
29+
// "storageFileName": "{HH}-{mm}-{Level}-log.txt",
30+
// "period": "00:00:10",
31+
// "retainedBlobCountLimit": 4
32+
// }
33+
//}
2434
]
2535
},
2636
"AllowedHosts": "*"

src/Serilog.Sinks.AzureBlobStorage/Serilog.Sinks.AzureBlobStorage.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@
3737
</ItemGroup>
3838

3939
<ItemGroup>
40-
<PackageReference Include="Azure.Identity" Version="1.12.0" />
41-
<PackageReference Include="Azure.Storage.Blobs" Version="12.21.1" />
40+
<PackageReference Include="Azure.Identity" Version="1.13.1" />
41+
<PackageReference Include="Azure.Storage.Blobs" Version="12.22.2" />
4242
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
43-
<PackageReference Include="Serilog" Version="4.0.1" />
43+
<PackageReference Include="Serilog" Version="4.1.0" />
4444

4545
</ItemGroup>
4646

4747
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
4848
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
4949
</ItemGroup>
5050
<ItemGroup Condition="'$(TargetFramework)' != 'net8.0'">
51-
<PackageReference Include="System.Text.Json" Version="8.0.4" />
51+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
5252
</ItemGroup>
5353

5454
</Project>

tests/Serilog.Sinks.AzureBlobStorage.UnitTest/Serilog.Sinks.AzureBlobStorage.UnitTest.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="FakeItEasy" Version="8.3.0" />
18-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
19-
<PackageReference Include="Serilog" Version="4.0.1" />
20-
<PackageReference Include="xunit" Version="2.9.0" />
18+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
19+
<PackageReference Include="Serilog" Version="4.1.0" />
20+
<PackageReference Include="xunit" Version="2.9.2" />
2121
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
2222
<PrivateAssets>all</PrivateAssets>
2323
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>

0 commit comments

Comments
 (0)