From fbce0352949db01d60527983a73dc9a91ab8fa91 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 5 Aug 2025 20:30:36 +0200 Subject: [PATCH 1/2] [dotnet] Add readable timestamps to log in Chromium browsers --- dotnet/src/webdriver/Chromium/ChromiumDriverService.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs b/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs index 53e25359dbdd2..e7300a5186308 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs @@ -94,6 +94,11 @@ protected ChromiumDriverService(string? executablePath, string? executableFileNa /// A value of or means only the local loopback address can connect. /// public string? AllowedIPAddresses { get; set; } + + /// + /// Adds readable timestamps to log + /// + public bool ReadableTimestamp { get; set; } /// /// Gets the command-line arguments for the driver service. @@ -128,6 +133,11 @@ protected override string CommandLineArguments argsBuilder.Append(" --append-log"); } + if (this.ReadableTimestamp) + { + argsBuilder.Append(" --readable-timestamp"); + } + if (!string.IsNullOrEmpty(this.LogPath)) { argsBuilder.AppendFormat(CultureInfo.InvariantCulture, " --log-path=\"{0}\"", this.LogPath); From 872e55875dba586d5a54c8f26afec4290c19e962 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 5 Aug 2025 20:56:13 +0200 Subject: [PATCH 2/2] Format script --- dotnet/src/webdriver/Chromium/ChromiumDriverService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs b/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs index e7300a5186308..8721eb5903cd1 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumDriverService.cs @@ -94,7 +94,7 @@ protected ChromiumDriverService(string? executablePath, string? executableFileNa /// A value of or means only the local loopback address can connect. /// public string? AllowedIPAddresses { get; set; } - + /// /// Adds readable timestamps to log ///