Skip to content

Use Trace.WriteLine instead of Debug.WriteLine in ConsoleExporter #1718

@utpilla

Description

@utpilla

The ConsoleExporter does not log anything to the Debug window when ConsolExporterOptions.Target is set to Debug.

The Release Solution Configuration project ignores any Debug class method invocations. However, a Release Solution Configuration project only generates output from a Trace class. (https://docs.microsoft.com/en-US/troubleshoot/dotnet/csharp/trace-and-debug)

Using Trace.WriteLine would log to the Debug window with Release configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions