Skip to content

LoggingEventSource can create wrong event payloads #2958

Closed

Description

@sywhang

Describe the bug

Microsoft-Extensions-Logging can create a bad event if there are null strings. For example, when FormattedMessage receives an EventName of null, the event payload will show that there is EventName of some other payload.

To Reproduce

Just create a new mvc app from dotnet new mvc and attach dotnet-trace or ETW, and turn on Microsoft-Extensions-Logging provider with keyword 0x4.

Expected behavior

When payloads with null string is written, it should be null in the resulting trace.

Screenshots

Annotation 2020-02-11 181801

Activity

  1. ghost locked as resolved and limited conversation to collaborators on Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions