Skip to content

FormattedLogValues struct should be public #67577

Open
@zuntio

Description

@zuntio

https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Logging.Abstractions/src/FormattedLogValues.cs should be imho public.

There are use cases where I want to log and return or throw same string. Would be handy to do something like:

var template = "Encountered data {Data}!";
_logger.LogInformation(template, data);
return new FormattedLogValues(template, data).ToString();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions