From f96ad1ac7e3cde8ad3ea00808a7527e2397ead96 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 19 May 2026 19:19:32 +0200 Subject: [PATCH] Add ReCClientOptions for configurable logging behavior Introduce the `ReCClientOptions` class in the new `ReC.Client` namespace. This class includes the `LogSuccessfulRequests` property, which allows users to enable or disable logging for successful API requests via the injected `ILogger`. Failed requests are unaffected and will always throw `ReCApiException`. The property defaults to `true`. XML documentation is included to describe the class and its behavior. --- src/ReC.Client/ReCClientOptions.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/ReC.Client/ReCClientOptions.cs diff --git a/src/ReC.Client/ReCClientOptions.cs b/src/ReC.Client/ReCClientOptions.cs new file mode 100644 index 0000000..bffe73d --- /dev/null +++ b/src/ReC.Client/ReCClientOptions.cs @@ -0,0 +1,16 @@ +namespace ReC.Client +{ + /// + /// Options that control the behavior of the . + /// + public class ReCClientOptions + { + /// + /// Gets or sets a value indicating whether successful API requests should be + /// logged through the injected . + /// Failed requests always throw regardless of this setting. + /// Defaults to . + /// + public bool LogSuccessfulRequests { get; set; } = true; + } +}