Skip to content

[πŸš€ Feature]: [dotnet] Avoid native C# events for logging purposesΒ #15733

@nvborisenko

Description

@nvborisenko

Description

Many years ago, when logging was not available for internal/external usage, we applied event based model to emit log messages.

For example:

public event EventHandler<DevToolsSessionLogMessageEventArgs>? LogMessage;

It means that selenium library always allocates new memory even when there are no active listeners. This allocation is unnecessary.

Have you considered any alternatives or workarounds?

Now we have internal mechanism for emitting log messages, users are able to react on them... globally... memory friendly... performant...

In this issue I propose to remove all "events" which were especially considered for logging purposes, and replace it with already available new logging mechanism.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-enhancementSomething could be better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions