1
- // <copyright file="Entry .cs" company="Selenium Committers">
1
+ // <copyright file="LogEntry .cs" company="Selenium Committers">
2
2
// Licensed to the Software Freedom Conservancy (SFC) under one
3
3
// or more contributor license agreements. See the NOTICE file
4
4
// distributed with this work for additional information
@@ -24,19 +24,19 @@ namespace OpenQA.Selenium.BiDi.Modules.Log;
24
24
25
25
// https://github.com/dotnet/runtime/issues/72604
26
26
//[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
27
- //[JsonDerivedType(typeof(Console ), "console")]
28
- //[JsonDerivedType(typeof(Javascript ), "javascript")]
29
- public abstract record Entry ( BiDi BiDi , Level Level , Script . Source Source , string Text , DateTimeOffset Timestamp )
27
+ //[JsonDerivedType(typeof(ConsoleLogEntry ), "console")]
28
+ //[JsonDerivedType(typeof(JavascriptLogEntry ), "javascript")]
29
+ public abstract record LogEntry ( BiDi BiDi , Level Level , Script . Source Source , string Text , DateTimeOffset Timestamp )
30
30
: EventArgs ( BiDi )
31
31
{
32
32
public Script . StackTrace ? StackTrace { get ; set ; }
33
+ }
33
34
34
- public record Console ( BiDi BiDi , Level Level , Script . Source Source , string Text , DateTimeOffset Timestamp , string Method , IReadOnlyList < Script . RemoteValue > Args )
35
- : Entry ( BiDi , Level , Source , Text , Timestamp ) ;
35
+ public record ConsoleLogEntry ( BiDi BiDi , Level Level , Script . Source Source , string Text , DateTimeOffset Timestamp , string Method , IReadOnlyList < Script . RemoteValue > Args )
36
+ : LogEntry ( BiDi , Level , Source , Text , Timestamp ) ;
36
37
37
- public record Javascript ( BiDi BiDi , Level Level , Script . Source Source , string Text , DateTimeOffset Timestamp )
38
- : Entry ( BiDi , Level , Source , Text , Timestamp ) ;
39
- }
38
+ public record JavascriptLogEntry ( BiDi BiDi , Level Level , Script . Source Source , string Text , DateTimeOffset Timestamp )
39
+ : LogEntry ( BiDi , Level , Source , Text , Timestamp ) ;
40
40
41
41
public enum Level
42
42
{
0 commit comments