serilog-sinks-azuretablestorage
serilog-sinks-azuretablestorage copied to clipboard
Add tests for large cell logging in Azure Sink
The Azure Table Sink silently fails when attempting to add more than 64K of data (32K string) to a cell. All subsequent logging also stops working even if this limit is not exceeded.
Added two new test methods to the AzureTableStorageWithPropertiesSinkTests
The first test, WhenALoggerWritesToTheSinkAndACellExceeds32KAnExceptionIsRaised
, verifies that an exception is thrown when a log entry exceeds the 32K character limit, noting the test is skipped for the Storage Emulator due to its different limit constraints. The second test, WhenALoggerWritesToTheSinkAndACellExceeds32KAnExceptionIsRaisedButSubsequentCallsContinueToWorkAsExpected
, checks that after an oversized entry throws an exception, subsequent log entries are processed normally.