Skip to content

Commit 4793930

Browse files
committed
build and package updates
1 parent 57c82bd commit 4793930

File tree

5 files changed

+98
-10
lines changed

5 files changed

+98
-10
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
27+
28+
- name: Setup .NET
29+
uses: actions/setup-dotnet@v3
30+
with:
31+
dotnet-version: |
32+
3.1.x
33+
6.0.x
2734
2835
- name: Restore Dependencies
2936
run: dotnet restore
@@ -51,6 +58,12 @@ jobs:
5158
env:
5259
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5360

61+
- name: Create Release
62+
if: success() && startsWith(github.ref, 'refs/heads/master')
63+
run: 'gh release create "${{env.BUILD_VERSION}}" ./artifacts/*.nupkg --title "v${{env.BUILD_VERSION}}"'
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
5467
- name: Publish Release Packages
5568
if: success() && startsWith(github.ref, 'refs/heads/master')
5669
run: dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_KEY} --skip-duplicate
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
const Serilog.LoggerConfigurationAzureTableStorageExtensions.DefaultBatchPostingLimit = 50 -> int
2+
const Serilog.LoggerConfigurationAzureTableStorageWithPropertiesExtensions.DefaultBatchPostingLimit = 50 -> int
3+
override Serilog.Sinks.AzureTableStorage.AzureBatchingTableStorageSink.EmitBatchAsync(System.Collections.Generic.IEnumerable<Serilog.Events.LogEvent> events) -> System.Threading.Tasks.Task
4+
override Serilog.Sinks.AzureTableStorage.AzureBatchingTableStorageWithPropertiesSink.EmitBatchAsync(System.Collections.Generic.IEnumerable<Serilog.Events.LogEvent> events) -> System.Threading.Tasks.Task
5+
override Serilog.Sinks.AzureTableStorage.Sinks.KeyGenerator.PropertiesKeyGenerator.GenerateRowKey(Serilog.Events.LogEvent logEvent, string suffix = null) -> string
6+
Serilog.LoggerConfigurationAzureTableStorageExtensions
7+
Serilog.LoggerConfigurationAzureTableStorageWithPropertiesExtensions
8+
Serilog.Sinks.AzureTableStorage.AzureBatchingTableStorageSink
9+
Serilog.Sinks.AzureTableStorage.AzureBatchingTableStorageSink.AzureBatchingTableStorageSink(Azure.Data.Tables.TableServiceClient storageAccount, Serilog.Formatting.ITextFormatter textFormatter, int batchSizeLimit, System.TimeSpan period, string storageTableName = null, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> void
10+
Serilog.Sinks.AzureTableStorage.AzureBatchingTableStorageSink.AzureBatchingTableStorageSink(Azure.Data.Tables.TableServiceClient storageAccount, Serilog.Formatting.ITextFormatter textFormatter, int batchSizeLimit, System.TimeSpan period, string storageTableName = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> void
11+
Serilog.Sinks.AzureTableStorage.AzureBatchingTableStorageWithPropertiesSink
12+
Serilog.Sinks.AzureTableStorage.AzureBatchingTableStorageWithPropertiesSink.AzureBatchingTableStorageWithPropertiesSink(Azure.Data.Tables.TableServiceClient storageAccount, System.IFormatProvider formatProvider, int batchSizeLimit, System.TimeSpan period, string storageTableName = null, string additionalRowKeyPostfix = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, string[] propertyColumns = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> void
13+
Serilog.Sinks.AzureTableStorage.AzurePropertyFormatter
14+
Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider
15+
Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider.GetCloudTable(Azure.Data.Tables.TableServiceClient storageAccount, string storageTableName, bool bypassTableCreationValidation) -> Azure.Data.Tables.TableClient
16+
Serilog.Sinks.AzureTableStorage.AzureTableStorageEntityFactory
17+
Serilog.Sinks.AzureTableStorage.AzureTableStorageSink
18+
Serilog.Sinks.AzureTableStorage.AzureTableStorageSink.AzureTableStorageSink(Azure.Data.Tables.TableServiceClient storageAccount, Serilog.Formatting.ITextFormatter textFormatter, string storageTableName = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> void
19+
Serilog.Sinks.AzureTableStorage.AzureTableStorageSink.Emit(Serilog.Events.LogEvent logEvent) -> void
20+
Serilog.Sinks.AzureTableStorage.AzureTableStorageWithPropertiesSink
21+
Serilog.Sinks.AzureTableStorage.AzureTableStorageWithPropertiesSink.AzureTableStorageWithPropertiesSink(Azure.Data.Tables.TableServiceClient storageAccount, System.IFormatProvider formatProvider, string storageTableName = null, string additionalRowKeyPostfix = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, string[] propertyColumns = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> void
22+
Serilog.Sinks.AzureTableStorage.AzureTableStorageWithPropertiesSink.Emit(Serilog.Events.LogEvent logEvent) -> void
23+
Serilog.Sinks.AzureTableStorage.KeyGenerator.DefaultKeyGenerator
24+
Serilog.Sinks.AzureTableStorage.KeyGenerator.DefaultKeyGenerator.DefaultKeyGenerator() -> void
25+
Serilog.Sinks.AzureTableStorage.KeyGenerator.DefaultKeyGenerator.RowId -> long
26+
Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator
27+
Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator.GeneratePartitionKey(Serilog.Events.LogEvent logEvent) -> string
28+
Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator.GenerateRowKey(Serilog.Events.LogEvent logEvent, string suffix = null) -> string
29+
Serilog.Sinks.AzureTableStorage.LogEventEntity
30+
Serilog.Sinks.AzureTableStorage.LogEventEntity.Data.get -> string
31+
Serilog.Sinks.AzureTableStorage.LogEventEntity.Data.set -> void
32+
Serilog.Sinks.AzureTableStorage.LogEventEntity.ETag.get -> Azure.ETag
33+
Serilog.Sinks.AzureTableStorage.LogEventEntity.ETag.set -> void
34+
Serilog.Sinks.AzureTableStorage.LogEventEntity.Exception.get -> string
35+
Serilog.Sinks.AzureTableStorage.LogEventEntity.Exception.set -> void
36+
Serilog.Sinks.AzureTableStorage.LogEventEntity.Level.get -> string
37+
Serilog.Sinks.AzureTableStorage.LogEventEntity.Level.set -> void
38+
Serilog.Sinks.AzureTableStorage.LogEventEntity.LogEventEntity() -> void
39+
Serilog.Sinks.AzureTableStorage.LogEventEntity.LogEventEntity(Serilog.Events.LogEvent log, Serilog.Formatting.ITextFormatter textFormatter, string partitionKey, string rowKey) -> void
40+
Serilog.Sinks.AzureTableStorage.LogEventEntity.MessageTemplate.get -> string
41+
Serilog.Sinks.AzureTableStorage.LogEventEntity.MessageTemplate.set -> void
42+
Serilog.Sinks.AzureTableStorage.LogEventEntity.PartitionKey.get -> string
43+
Serilog.Sinks.AzureTableStorage.LogEventEntity.PartitionKey.set -> void
44+
Serilog.Sinks.AzureTableStorage.LogEventEntity.RenderedMessage.get -> string
45+
Serilog.Sinks.AzureTableStorage.LogEventEntity.RenderedMessage.set -> void
46+
Serilog.Sinks.AzureTableStorage.LogEventEntity.RowKey.get -> string
47+
Serilog.Sinks.AzureTableStorage.LogEventEntity.RowKey.set -> void
48+
Serilog.Sinks.AzureTableStorage.LogEventEntity.Timestamp.get -> System.DateTimeOffset?
49+
Serilog.Sinks.AzureTableStorage.LogEventEntity.Timestamp.set -> void
50+
Serilog.Sinks.AzureTableStorage.ObjectNaming
51+
Serilog.Sinks.AzureTableStorage.Sinks.KeyGenerator.PropertiesKeyGenerator
52+
Serilog.Sinks.AzureTableStorage.Sinks.KeyGenerator.PropertiesKeyGenerator.PropertiesKeyGenerator() -> void
53+
Serilog.Sinks.AzureTableStorage.TaskExtensions
54+
static readonly Serilog.LoggerConfigurationAzureTableStorageExtensions.DefaultPeriod -> System.TimeSpan
55+
static readonly Serilog.LoggerConfigurationAzureTableStorageWithPropertiesExtensions.DefaultPeriod -> System.TimeSpan
56+
static readonly Serilog.Sinks.AzureTableStorage.ObjectNaming.KeyFieldValueCharactersNotAllowedMatch -> System.Text.RegularExpressions.Regex
57+
static Serilog.LoggerConfigurationAzureTableStorageExtensions.AzureTableStorage(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, Azure.Data.Tables.TableServiceClient storageAccount, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, System.IFormatProvider formatProvider = null, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
58+
static Serilog.LoggerConfigurationAzureTableStorageExtensions.AzureTableStorage(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, Serilog.Formatting.ITextFormatter formatter, Azure.Data.Tables.TableServiceClient storageAccount, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
59+
static Serilog.LoggerConfigurationAzureTableStorageExtensions.AzureTableStorage(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, Serilog.Formatting.ITextFormatter formatter, string connectionString, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
60+
static Serilog.LoggerConfigurationAzureTableStorageExtensions.AzureTableStorage(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, Serilog.Formatting.ITextFormatter formatter, string sharedAccessSignature, string accountName, System.Uri tableEndpoint = null, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
61+
static Serilog.LoggerConfigurationAzureTableStorageExtensions.AzureTableStorage(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, string connectionString, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, System.IFormatProvider formatProvider = null, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
62+
static Serilog.LoggerConfigurationAzureTableStorageExtensions.AzureTableStorage(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, string sharedAccessSignature, string accountName, System.Uri tableEndpoint = null, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, System.IFormatProvider formatProvider = null, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
63+
static Serilog.LoggerConfigurationAzureTableStorageWithPropertiesExtensions.AzureTableStorageWithProperties(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, Azure.Data.Tables.TableServiceClient storageAccount, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, System.IFormatProvider formatProvider = null, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, string additionalRowKeyPostfix = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, string[] propertyColumns = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
64+
static Serilog.LoggerConfigurationAzureTableStorageWithPropertiesExtensions.AzureTableStorageWithProperties(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, string connectionString, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, System.IFormatProvider formatProvider = null, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, string additionalRowKeyPostfix = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, string[] propertyColumns = null, bool bypassTableCreationValidation = false, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
65+
static Serilog.LoggerConfigurationAzureTableStorageWithPropertiesExtensions.AzureTableStorageWithProperties(this Serilog.Configuration.LoggerSinkConfiguration loggerConfiguration, string sharedAccessSignature, string accountName, System.Uri tableEndpoint = null, Serilog.Events.LogEventLevel restrictedToMinimumLevel = Serilog.Events.LogEventLevel.Verbose, System.IFormatProvider formatProvider = null, string storageTableName = null, bool writeInBatches = false, System.TimeSpan? period = null, int? batchPostingLimit = null, string additionalRowKeyPostfix = null, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator = null, string[] propertyColumns = null, Serilog.Sinks.AzureTableStorage.AzureTableProvider.ICloudTableProvider cloudTableProvider = null) -> Serilog.LoggerConfiguration
66+
static Serilog.Sinks.AzureTableStorage.AzurePropertyFormatter.ToEntityProperty(Serilog.Events.LogEventPropertyValue value, string format = null, System.IFormatProvider formatProvider = null) -> object
67+
static Serilog.Sinks.AzureTableStorage.AzureTableStorageEntityFactory.CreateEntityWithProperties(Serilog.Events.LogEvent logEvent, System.IFormatProvider formatProvider, string additionalRowKeyPostfix, Serilog.Sinks.AzureTableStorage.KeyGenerator.IKeyGenerator keyGenerator, string[] propertyColumns = null) -> Azure.Data.Tables.TableEntity
68+
static Serilog.Sinks.AzureTableStorage.LogEventEntity.GetValidRowKey(string rowKey) -> string
69+
static Serilog.Sinks.AzureTableStorage.ObjectNaming.GetValidKeyValue(string keyValue) -> string
70+
static Serilog.Sinks.AzureTableStorage.Sinks.KeyGenerator.PropertiesKeyGenerator.GetValidStringForTableKey(string s) -> string
71+
static Serilog.Sinks.AzureTableStorage.TaskExtensions.SyncContextSafeWait(this System.Threading.Tasks.Task task, int timeout = -1) -> bool
72+
static Serilog.Sinks.AzureTableStorage.TaskExtensions.SyncContextSafeWait<T>(this System.Threading.Tasks.Task<T> task, int timeout = -1) -> T
73+
virtual Serilog.Sinks.AzureTableStorage.KeyGenerator.DefaultKeyGenerator.GeneratePartitionKey(Serilog.Events.LogEvent logEvent) -> string
74+
virtual Serilog.Sinks.AzureTableStorage.KeyGenerator.DefaultKeyGenerator.GenerateRowKey(Serilog.Events.LogEvent logEvent, string suffix = null) -> string

src/Serilog.Sinks.AzureTableStorage/Serilog.Sinks.AzureTableStorage.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<Description>Serilog event sink that writes to Azure Table Storage over HTTP.</Description>
5-
<VersionPrefix>6.0.0</VersionPrefix>
6-
<Authors>Robert Moore</Authors>
5+
<VersionPrefix>7.0.0</VersionPrefix>
6+
<Authors>serilog-contrib</Authors>
77
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
88
<AssemblyName>Serilog.Sinks.AzureTableStorage</AssemblyName>
99
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
@@ -28,9 +28,9 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Serilog" Version="2.11.0" />
32-
<PackageReference Include="Serilog.Sinks.PeriodicBatching" Version="2.3.1" />
33-
<PackageReference Include="Azure.Data.Tables" Version="12.5.0" />
31+
<PackageReference Include="Serilog" Version="2.12.0" />
32+
<PackageReference Include="Serilog.Sinks.PeriodicBatching" Version="3.1.0" />
33+
<PackageReference Include="Azure.Data.Tables" Version="12.8.0" />
3434
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
3535
</ItemGroup>
3636
</Project>

test/Serilog.Sinks.AzureTableStorage.Tests/Serilog.Sinks.AzureTableStorage.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>netcoreapp31;net6.0</TargetFrameworks>
@@ -24,12 +24,12 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
28-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.4">
27+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
28+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
2929
<PrivateAssets>all</PrivateAssets>
3030
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3131
</PackageReference>
32-
<PackageReference Include="xunit" Version="2.4.1" />
32+
<PackageReference Include="xunit" Version="2.4.2" />
3333
</ItemGroup>
3434

3535
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">

0 commit comments

Comments
 (0)