Skip to content

Add support for structured logging for diagnostics #277

Open
@augustoproiete

Description

@augustoproiete

Excel-DNA's Diagnostic Logging feature allows the developer to configure a TraceListener that will be used by Excel-DNA to write diagnostic log messages, which can then be forwarded to any logging pipeline such as Serilog or NLog, for example, in order to consume / analyse these logs outside of the user's machine.

Unfortunately, the standard Trace feature that comes with .NET only does simple text logging and does not provide structured logging capabilities, and important information is lost by the time messages reach the logging pipeline.

image

It would be great if Excel-DNA moved away from Trace and added support for structured logging within its diagnostic logging, and provided an extension point for the developer to attach structured logging providers at run-time.

Ideally it should use Microsoft.Extensions.Logging which is the current standard for modern .NET apps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions