Skip to content

Commit 133c692

Browse files
hjgracaCopilot
andauthored
Update libraries/src/AWS.Lambda.Powertools.Logging/PowertoolsLoggerConfiguration.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Henrique Graca <999396+hjgraca@users.noreply.github.com>
1 parent 7a24f7b commit 133c692

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

libraries/src/AWS.Lambda.Powertools.Logging/PowertoolsLoggerConfiguration.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,13 @@ public JsonSerializerOptions JsonOptions
248248
/// options.LogBuffering.BufferAtLogLevel = LogLevel.Warning;
249249
/// </code>
250250
/// </example>
251-
public LogBufferingOptions LogBuffering { get; set; } = new LogBufferingOptions();
251+
private LogBufferingOptions _logBuffering = new LogBufferingOptions();
252252

253+
public LogBufferingOptions LogBuffering
254+
{
255+
get => _logBuffering;
256+
set => _logBuffering = value ?? new LogBufferingOptions();
257+
}
253258
/// <summary>
254259
/// Serializer instance for this configuration
255260
/// </summary>

0 commit comments

Comments
 (0)